| View previous topic :: View next topic |
| Author |
Message |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Sep 06, 2004 3:19 pm Post subject: Editing shortcut properties |
|
|
I wanted a way to be able to edit a shortcut, or open its properties to allow editing. As you know, VDS doesn't provide a way to get all the information from a .LNK file, so it's not possible to write an editor in VDS. Without much hope, I executed the command:
| Code: | | shell properties,shortcut.LNK |
and lo and behold, the shortcut's properties dialog opened! Was this just a fluke, or will it work on other versions of Windows besides XP? _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Sep 06, 2004 4:22 pm Post subject: |
|
|
Thanks. I hadn't thought of the multilingual aspect of it. That's very useful. If it works under Win9x as well, it would seem to be safe to use it.
As a matter of interest, does "shell open" or "shell print" work on non-English versions of Windows? _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Sep 07, 2004 3:26 am Post subject: |
|
|
Jules,
I have a DLL that is part of the Gadget package that will allow you to set the properties for links. The example should be the misc.dsc source file. It calls 2 functions from the dragonfly.dll called QueryLink and MakeLink. The Gadget definition for these functions are as follows.
| Code: |
Gadget Define,Function,QueryLink,@Gadget(dragonfly),QueryLink,lpszLink As String;lpszTarget As String;pszName As String;pszDir As String;pszArgs As String;pszIconPath As String;piIcon As Pointer;pwHotkey As Pointer;piShowCmd As Pointer;fFlags As DWORD,POINTER,@Gadget(STDCALL_MS)
Gadget Define,Function,MakeLink,@Gadget(dragonfly),MakeLink,lpszPathObj As String;lpszPathLink As String;lpszDesc As String;pszDir As String;pszArgs As String;pszIconPath As String;iIcon As Integer;wHotkey As Word;iShowCmd As Integer,Long,@Gadget(STDCALL_MS)
|
This should work just fine for you and allow you to build your own interface for this. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun May 03, 2009 4:09 am Post subject: |
|
|
And here we go for a Necroreply!
Ok, I'm now trying to get the properties open on shortcuts here on Vista, and the above will not work at all.
checking the registry for the shell entries of the .lnk file shows no entry for properties at all, not even open.
Can someone using XP check the registry entries for .lnk and post what entries there are, and what the values are for the entries.
Mainly looking for
HKEY_CLASSES_ROOT\.LNK\SHELL
there should be some entries in there like "Open". _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun May 03, 2009 11:54 am Post subject: |
|
|
For .lnk there's no Shell in XP, so no properties or open. Only ShellEx and ShellNew.
| Code: | Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"
[HKEY_CLASSES_ROOT\.lnk\ShellEx]
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Command"="rundll32.exe appwiz.cpl,NewLinkHere %1" |
_________________ cheers
Dave
Last edited by DaveR on Sun May 03, 2009 3:41 pm; edited 1 time in total |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun May 03, 2009 11:58 am Post subject: |
|
|
No open or properties for lnkfile either.
| Code: | Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
"NeverShowExt"=""
[HKEY_CLASSES_ROOT\lnkfile\CLSID]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shell]
[HKEY_CLASSES_ROOT\lnkfile\shell\Find Target]
[HKEY_CLASSES_ROOT\lnkfile\shell\Find Target\command]
@="C:\\Program Files\\Find Target\\Find Target.exe %1"
[HKEY_CLASSES_ROOT\lnkfile\shellex]
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Offline Files]
@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" |
_________________ cheers
Dave |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun May 03, 2009 4:01 pm Post subject: |
|
|
Well that sucks. I was hoping there'd be a command line in there for it on the XP systems I could use.
Thanks for the help
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|