Search found 1 match
- 25 Aug 2012 21:53
- Forum: DOS Batch Forum
- Topic: foolproof counting of arguments
- Replies: 56
- Views: 121356
Re: foolproof counting of arguments
Hi ! What about this code : set tmp=%1 set tmp=%tmp:~0,1% :: Double the doublequote seems to be better with if using [ ].Characters " = [ & ^ etc are handled set tmp=%tmp:"=""% if ["%tmp%"] == ["~0,1"] GOTO :ARGUMENT_NOT_DEFINED if ["%tmp%"] == [...