Displaying Windows command prompt output and redirecting it to a file

How can I run a command-line application in the Windows command prompt and have the output both displayed and redirected to a file at the same time? If, for example, I were to run the command dir > test.txt, this would redirect output to a file called test.txt without displaying the results. How could I … Read more

How to run multiple .BAT files within a .BAT file

I’m trying to get my commit-build.bat to execute other .BAT files as part of our build process. Content of commit-build.bat: “msbuild.bat” “unit-tests.bat” “deploy.bat” This seems simple enough, but commit-build.bat only executes the first item in the list (msbuild.bat). I have run each of the files separately with no problems. 18 s 18 Use: call msbuild.bat … Read more