|
|
|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
A problem about shoutcut
How to create a short cut with an argument?
suppose that the target of the shorcut is "%Windir%\system32\rasphone.exe -d ADSL",I create it by “New→Shortcutâ€.I input "%Windir%\system32\rasphone.exe -d ADSL"(without the quotation marks),now the target of the shortcut is "%Windir%\system32\rasphone.exe -d ADSL"(without the quotation marks),use the follow script: CreateShortCut “ADSL.lnk†"%Windir%\system32\rasphone.exe -d ADSL" The target is "%Windir%\system32\rasphone.exe -d ADSL"(with the quotation marks),run it,Windows said the file is not found!after delete the quotation marks,the shorcut turns right.If the argument "-d" is quoted,it can not run. To create a shortcut that the words in target box does not contain the quotation marks,becuse there is a argument "-d" in the target,NSIS default not. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
if you read the documentation for CreateShortCut you will see that you should use
CreateShortCut "ADSL.lnk" "%Windir%\system32\rasphone.exe" "-d ADSL" IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|