Back-Story: I have multiple projects I work on/with that are provided via SVN. Each of these folders have their own "build.bat" to compile the needed files. Each build.bat has a "pause" at the end of the file.
Purpose: I'm trying to automate building all of these via one PS script.
Problem: I've been able to create all the needed variables and get it to call the individual batch files to create what I need and move them to the centralized project location, but I still have to sit around and press a key at the end of each batch file for it to continue. I tend to forget to hit it right away, so I end up wasting a lot of time between batch files.
Partial Solution: In case the build.bat gets updated in the SVN I have it make a new copy called runme.cmd but I don't know how to either filter out just the pause at the end or how to create a new runme.cmd filtering in everything except the pause.
Long story short: I'm looking for a way to edit runme.cmd on the fly, removing all instances of pause or a way to write a new file with the contents of build.bat (minus the pauses).
Any help would be appreciated.