title: Running batch file and del command won't work...?
body: <p>OK, to preface, I searched already and couldn't find a similar question, so I'm not sure what's going on here.  </p>
  
  <p>Basically, I want to rename a file in a subdirectory, copy a new file into that location, run a script there, then delete that new file and rename the old one to it's original name. The issue is it just stops at the delete command, and both files are left.  Here is my code (note the pauses are just in there for me to debug the script):</p>
  
  <pre><code>ren "C:\Users\me\Desktop\stuff\new\test.txt" "test(1).txt"
  pause
  copy "C:\Users\me\Desktop\stuff\test.txt" "C:\Users\me\Desktop\stuff\new\"
  pause
  "C:\Users\me\Desktop\stuff\new\sample.bat"
  del "C:\Users\me\Desktop\stuff\new\test.txt"
  pause
  ren "C:\Users\me\Desktop\stuff\new\test(1).txt" "test.txt"
  pause
  </code></pre>