mcollins
4th June 2002, 20:33
Hey here is the problem i am having. I am trying to create a shortcut that contains a command line parameter for the exe it points to. When i run this ....
CreateShortCut "$DESKTOP\Whatever.lnk" '"C:\Test.ext" /c "MyString"'
it creates the shortcut just fine except it switches the "/c" to "\c" and so link does not work correctly. Does anyone know why its switching the slashes on me and how i can fix this problem? I've also tried
CreateShortCut "$DESKTOP\Whatever.lnk" '"C:\Test.ext" '/c' "MyString"'
and that didnt work either. Any help you can offer would be appreciated.
Thnx,
Mark
CreateShortCut "$DESKTOP\Whatever.lnk" '"C:\Test.ext" /c "MyString"'
it creates the shortcut just fine except it switches the "/c" to "\c" and so link does not work correctly. Does anyone know why its switching the slashes on me and how i can fix this problem? I've also tried
CreateShortCut "$DESKTOP\Whatever.lnk" '"C:\Test.ext" '/c' "MyString"'
and that didnt work either. Any help you can offer would be appreciated.
Thnx,
Mark