mpenner
asked on
Creating a shortcut from code
Is there any way to create a shortcut (.lnk file) from an API call? Or is there an executable that can be called from a batch file to create a .lnk file? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is also a tool in the nt resource kit called shortcut.
SHORTCUT is a command-line tool for creating and maintaining Windows NT and Windows 95 shortcuts.
For SHORTCUT usage, at the command prompt type shortcut.exe -?
SHORTCUT is a command-line tool for creating and maintaining Windows NT and Windows 95 shortcuts.
For SHORTCUT usage, at the command prompt type shortcut.exe -?
ASKER
Thanks Madshi, that generally worked.
AlanB, Sorry don't have the nt resource kit.
Duneram, unfortunately, I can't have user interaction and your method requires that. Thanks anyway.
AlanB, Sorry don't have the nt resource kit.
Duneram, unfortunately, I can't have user interaction and your method requires that. Thanks anyway.
RunDLL32 AppWiz.Cpl,NewLinkHere c:\Temp