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.
"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You can programmatically create a shortcut by P/Invoking the
> SHCreateShortcut API function. See here for the code to do it:-
> http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=300
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Felipe T." <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >
>
>