I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file.
Here\'s what the command line looks like:
@ECHO OFF :Loop IF "%1"=="" GOTO Continue SHIFT GOTO Loop :Continue
Note: IF "%1"=="" will cause problems if %1 is enclosed in quotes itself.
"%1"==""
%1
In that case, use IF [%1]==[] or, in NT 4 (SP6) and later only, IF "%~1"=="" instead.
IF [%1]==[]
IF "%~1"==""