Is there an easy way to detect options/switches passed in to a batch file via the command line? I'm looking for something along the lines of sh
's and bash
's getopts
.
views:
23answers:
1
+2
A:
No, there isn't.
(The batchfile only sees %0, %1, %2, etc. and %*, plus variations such as %~d0, %~f1, %~x2 etc.)
pipitas
2010-08-07 17:22:37
After reading the superuser question you posted in your answer, that made me think to check robvanderwoude.com and I didn't find anything... if there were an easy way to do it, it would be on http://www.robvanderwoude.com/parameters.php. Thanks.
Christopher Parker
2010-08-10 14:45:20