How to redirect the output of a command when it is executed using the DOS START command

I cannot figure out how to redirect the output of an executable using the DOS START command. When I use the following:

start prog.exe par1 par2 par3 > output.file

only the output of the START command goes to output.file when I want the output from prog.exe to go to output.file. prog.exe writes the output to standard output.

+3
source share
1 answer

You need to avoid the redirection character so that it is passed to the internal command. Try the following:

start prog.exe par1 par2 par3 ^> output.file
+5
source

Source: https://habr.com/ru/post/1746061/


All Articles