
Question:
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
.
Solution:1
No, there isn't.
(The batchfile only sees %0, %1, %2, etc. and %*, plus variations such as %~d0, %~f1, %~x2 etc.)
Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
EmoticonEmoticon