Execute a command asynchronously while redirecting the output to a file in a batch file?

前端 未结 2 687
予麋鹿
予麋鹿 2021-01-15 15:00

Let\'s say in a batch file, I want to execute myCommand asynchronously (without waiting for it to finish). And I don\'t want to execute myCommand in a new

2条回答
  •  鱼传尺愫
    2021-01-15 15:15

    Nearly like dbenhams answer, but you need to force the redirection to the new thread, not to the start command.

    start "myTitle" "myCommand > output.txt"
    

提交回复
热议问题