How to get all the 3 command line arguements passed to my NSIS compiled exe in variables so that I can use those parameters to Exec(ute) another exe.

For example - start abc.exe "test.txt" "-1" is the command passed to my NSIS compiled exe where "abc" is exe name and "test.txt" and "-1" are the two arguements.

How to get both of them as different variables ?

有帮助吗?

解决方案

Take a look at the GetOptions macro, which allows you getting the parameters when passed in a certain way. Unless you want to adapt your current commandline parameters, GetParameters might suit you better, but you'll have to parse the parameters yourself.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top