|I'm working on a batch file that will recieve arguments from the command line. I figured I should put some handlers if invalid or too few/many arguments are provided. I came up with this:|
:: e.g. set arg1 to %1 (argument 1)
:: Idunno why I put it here, but I have a tingly feeling I need it
IF !ARG%CNT%!==!CNT! (
SET /A CNT=%CNT%+1
ECHO ARGUMENTS RECIEVED
PAUSE > NUL
The problem is that it won't process %1 as an argument, but instead processes it as a string.
How would I fix this?
99 little bugs in the code,
99 little bugs.
Take one down, patch it around,
129 little bugs in the code.
message edited by RainBawZ