<p>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.</p>

<p>Here's what the command line looks like:</p>

<pre><code>test.cmd admin P@55w0rd &gt; test-log.txt
</code></pre>

Yep, and just don't forget to use variables like
```
%%1
```
when using
```
if
```
and
```
for
```
and the gang.
If you forget the double
```
%
```
, then you will be substituting in (possibly null) command line arguments and you will receive some pretty confusing error messages.