title: Passing variable from vbs to batch file
body: <p>I am trying to pass a string that is contained in a variable named <code>sDateFile</code> into <code>test.bat</code> using the following line:</p>
  
  <pre><code>WshShell.Run "test.bat sDateFile"
  </code></pre>
  
  <p>And to check whether <code>test.bat</code> has received the variable. I get <code>test.bat</code> to do the following:</p>
  
  <pre><code>echo %1
  </code></pre>
  
  <p>But my output is <code>sDateFile</code>, not the string in the variable.
  Am I approaching my problem incorrectly? Would there be a better way to approach it?</p>