I\'m doing a simple batch file that requires one argument (you can provide more, but I ignore them).
For testing, this is what I have so far.
if not
An alternative would be to set a variable, and check whether it is defined:
SET ARG=%1 IF DEFINED ARG (echo "It is defined: %1") ELSE (echo "%%1 is not defined")
Unfortunately, using %1 directly with DEFINED doesn't work.
%1
DEFINED