Creating .Lnk

  • Thread starter Thread starter Felipe T.
  • Start date Start date
F

Felipe T.

Hi guys, another question...Sorry, but they just keep coming....
....I want to programatically create a link to a file. This link must b
located in any directory i want, and the file will b stuck in its natural
directory. Any way of doing this?

Thx
 
Also, you can create the shortcut as a simple text file (if you have no
shell and can't access that API, for instance). The format is:

<char count>#<command line>

So, to run a program called myprog.exe with a /run parameter, the file would
contain something like:

15#myprog.exe /run

Paul T.
 
Thx

Paul G. Tobey said:
Also, you can create the shortcut as a simple text file (if you have no
shell and can't access that API, for instance). The format is:

<char count>#<command line>

So, to run a program called myprog.exe with a /run parameter, the file would
contain something like:

15#myprog.exe /run

Paul T.
 
Back
Top