title: Batch string replace
body: <p>I have a variable like this</p>
  
  <pre><code>"Folder With Spaces/filename.ext"
  </code></pre>
  
  <p>When I pass it to my program via PHP's system command, arguments are separated by spaces</p>
  
  <pre><code>system("batch.bat Folder With Spaces/filename.ext");
  </code></pre>
  
  <p>So I have it like this</p>
  
  <pre><code>system("batch.bat Folder_With_Spaces/filename.ext");
  </code></pre>
  
  <p>Is there a way now that it is back in the batch program to replace the <code>_</code>'s with <code></code>'s</p>