title: Running Command Line Arguments
body: <p>I'm trying to run a command line argument through VB.NET using the Shell() command.</p>
  
  <p>I'm trying to use this piece of code:</p>
  
  <pre><code>FOR /R %I in (*.pdf) DO @pdf2swf.exe "%~fI" -o "%~dpI%~nI.swf" -f -T 9
  -t -G
  </code></pre>
  
  <p>Using this:</p>
  
  <pre><code>Shell("FOR /R %I in (*.pdf) DO @pdf2swf.exe "%~fI" -o "%~dpI%~nI.swf" -f -T 9
  -t -G ")
  </code></pre>
  
  <p>However, the interpreter is giving me this error:</p>
  
  <pre><code>Character is not valid. (BC30037)
  </code></pre>
  
  <p>For the <code>%~</code> part.</p>
  
  <p>I also tried created a string and passing the argument to the Shell() command by using <code>Shell(StringName)</code> but I still get the same error in the string.</p>
  
  <p>How could I fix this issue?</p>