jordan@mddc.UUCP (07/21/83)
There was one thing I thought I'd mention about batch files. It is often nice to know whether someone has typed any paramaters or not. Howeverm you can't say : IF %1 == "" goto usage and you can't say: IF %1 == goto usage but you can say: IF %1foo == foo goto usage That will evaluate true only if there is no %1 given. _____________________________________________________________ Jordan Bortz UUCP : ..decvax!cbosgd!mddc!jordan ARPA : ..cbosgd!mddc!jordan@berkeley.ARPA FLAMES : /dev/null on your local system
jph@whuxlb.UUCP (07/25/83)
#R:mddc:-20000:whuxlb:6400005:000:138 whuxlb!jph Jul 24 22:57:00 1983 A better way of testing for parameters is the following: IF "%1" == "" THEN GOTO DONE This is somewhat more readable then "%1foo".