I am seeking for a tool that lets me create a Windows shortcut file (.lnk) file from within a batch file or via command line.
Additional reqired features:
* must work on Windows 9x and Windows NT.
* must be as small as possible, since intended use is Logon-Scripts over slow RAS links, so no libraries, VB runtimes, Scripting host, ect, just one standalone .exe file.
* parameter passing either via environment variables or plain text file (ini file), since the tools command line very likely cannot hold enough characters to specify all aspects of a lnk file.
Just to make everything clear, a sample of how I'd like to create a link:
more set statements to define the lnk file symbol, shortcut key, ...
makelnk "c:\winnt\profiles\all users\desktop\Notepad.lnk"
So who can help me to get such a program "mklink.exe" ...?
P.S. somewhere I found a hint how to create a lnk file via DDE. Unfortunately the author didn't give any details (just said it was possible), and didn't cover the topic how to send DDE commands from the command line (probably a tool is available somewhere). I would accept such a solution as well, if the DDE sender tool is pretty small...