Archive: CreateShortCut Command Line Option


CreateShortCut Command Line Option
How would a create a shortcut with a command line option... example "MyApp.exe" -nc -f


Just use '"MyApp" -opts'

-Stu


You need to handle those parameters so they have a meaning.

You can do this by using Get Command Line Parameters function from Appendix B: Useful Functions part of the documentation.

To get just one part of the string returned by the function, I recommend you to use WordFind from Archive or ${StrTok} from StrFunc.nsh.

To create a shortcut with that information (I think you already know), you can use CreateShortCut to do the job.