forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Editing shortcut properties

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Sep 06, 2004 3:19 pm    Post subject: Editing shortcut properties Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Sep 06, 2004 3:34 pm    Post subject: Reply with quote

One thing I can say is that it does work on the Dutch version of Windows XP... Smile (Normally "our" contextmenus say "Eigenschappen" insteed of "Properties", so I wasn't sure if it would work)... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Sep 06, 2004 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Sep 06, 2004 5:29 pm    Post subject: Reply with quote

Both "shell print" and "shell open" work on this Dutch Windows installation... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Sep 07, 2004 3:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun May 03, 2009 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun May 03, 2009 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun May 03, 2009 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun May 03, 2009 4:01 pm    Post subject: Reply with quote

Well that sucks. I was hoping there'd be a command line in there for it on the XP systems I could use. Sad

Thanks for the help Smile
~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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group