Do you use PowerShell to run batch files in Visual Studio?

Last updated by Brady Stroud [SSW] about 1 month ago.See history

Windows Command Processor (cmd.exe) cannot run batch files (.bat) in Visual Studio because it does not take the files as arguments. One way to run batch files in Visual Studio is to use PowerShell.

BadBatch small
Bad example - Using Windows Command Processor (cmd.exe) for running batch files.

goodbatch small
Good example - Using PowerShell for running batch files

Adam Cogan
Ryan Tee
We open source. Powered by GitHub