Question

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 ?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top