If a user were to input: "program.bat --execute -s 1000 -r 60"
How can I extract the input as one string starting from "-s" to the end (the end could have unlimited number of parameters). In this case, I'd want "-s 1000 -r 60".
I want to do something like:
if "%1"=="--execute"
grab the rest of the arguments
I know %* grabs all the arguments, but I only want -s till the end.