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:
In batch file
set argument1=%1 set argument2=%2 echo %argument1% echo %argument2%
%1 and %2 return the first and second argument values respectively.
%1
%2
And in command line, pass the argument
Directory> batchFileName admin P@55w0rd
Output will be
admin P@55w0rd