Windows API: Creating shortcuts on the desktop-2
2003-09-06 -- Jim Kane
Newsgroups: softvelocity.public.clarion6
look at msdn under ishelllink there are lots of options.
setarguments method looks like what you are looking for.
jim kane
"Lance Veitch" wrote in message
news:1_109_3300@discuss.softvelocity.com...
> I am using the code below of Alexey which works great.
> Is there a way to put a parameter after the File Target.
> eg. C:\mypath\myprog.exe XYZ
>
> I have tried but cannot get it right.
> The code creates "C:\mypath\myprog.exe XYZ" which is incorrect.
> Should be either: C:\mypath\myprog.exe XYZ
> or : "C:\mypath\myprog.exe" XYZ
>
> When manually entering the parameter and then looking at the LNK file hex
the
> file seems to quite different to the LNK file without the parameter.
> Is there a different set of IShellLink, IPersistFile or IPersistStream
objects
> to be used when using parameters after the Target File Name.
>
> Can anybody help me with this one?
>
> Regards,
> Lance
>
>
>
> Alexey Solovjev once posted an excellent piece of code to demonstrate
this.
> The original article is archived on Google at this location (this URL will
wrap
> on your screen)
>
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3A59B60B.2BA7253F@also.spb.ru&rnum=3&prev=/groups?hl=en&lr=&ie=UTF-8&selm=3A59B60B.2BA7253F%40also.spb.ru&rnum=3
Printed November 23, 2024, 6:12 am
This article has been viewed/printed 35209 times.
Google search
has resulted in 27 hits on this article since January 25, 2004.