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

Last updated by Brady Stroud [SSW] over 1 year 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

We open source. Powered by GitHub