|
|
#1 |
|
Junior Member
|
I am trying to create a desktop shortcut using the following command
CreateShortCut "$DESKTOP\Reports" "$INSTDIR\WINTAD.EXE /C 20214013.cfg 202.140.138.22" The problem that I am facing is that the shortcut get created just fine but on viewing the properties of the shortcut, the target file is enclosed in double quotes and hence the shortcut does not work properly. The shortcut I need to create a shortcut that contains lot of parameters. Can somebody help me in achieving this?? Thanx |
|
|
|
|
|
#2 |
|
Forum King
|
mmmh, i'm pretty new to strings, but this could work
code: good luck
|
|
|
|
|
|
#3 |
|
Junior Member
|
Thanx but the solution does'nt work. The shortcut gets created but the target file name along with the parameters are all enclosed in double quotes preventing it to work properly.
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
The parameters should go into a separate string, not together with the file that should be opened.
Eg.: CreateShortCut "$DESKTOP\prob.lnk" '"$WINDIR\notepad.exe"' '"$WINDIR\win.ini"' As described in the NSIS Docs. -Hendri. |
|
|
|
#5 |
|
Junior Member
|
Thanx a lot. The solution works
|
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
Great!!!
-Hendri. |
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|