Hi,
I am having trouble figuring out how to set a target path for a desktop
shortcut.

This how I would like the target field to appear in the icon:

"c:\pathto\msoffice\access.exe" "\\PathToSomeSvr\AndOpen\thisDB.mdb " /With
/LotsOf /DifferentSwitches

When I try to do this the icon is built with the whole string enclosed in "
" and / are turned around to \ . I have tryed and tryed with not success. If
anyone could show me how to build this path or point me in the right
direction would be nice.

Thx

Re: WSH shortcut's traget path by Joe

Joe
Thu Aug 28 07:00:34 CDT 2003

"Patrick" <themuffinmaster@yahoo.com> wrote in message
news:e6eyFhVbDHA.1180@TK2MSFTNGP11.phx.gbl...
> Hi,
> I am having trouble figuring out how to set a target path for a desktop
> shortcut.
>
> This how I would like the target field to appear in the icon:
>
> "c:\pathto\msoffice\access.exe" "\\PathToSomeSvr\AndOpen\thisDB.mdb "
/With
> /LotsOf /DifferentSwitches
>
> When I try to do this the icon is built with the whole string enclosed in
"
> " and / are turned around to \ . I have tryed and tryed with not success.
If
> anyone could show me how to build this path or point me in the right
> direction would be nice.
>
> Thx
>
>
I humbly suggest
1) Use the arguments property of the shortcut class to specify switches etc.
2) Get documentatuion from
http://msdn.microsoft.com/downloads/list/webdev.asp?frame=true

--

Joe