A .bat file is launched, and its output is redirected to a text file. For example, task.bat > result.txt. This file uses the start command to launch a program. I even tried redirecting all its output streams to nowhere: 1>nul 2>nul. The .bat file finishes, but the program continues to run. And until it's closed, it's impossible to delete the result.txt file, which is very necessary. What could be the problem?
A .bat file is launched, and its output is redirected to a text file. For example, task.bat > result.txt. This file uses the start command to launch a program. I even tried redirecting all its output streams to nowhere: 1>nul 2>nul. The .bat file finishes, but the program continues to run. And until it's closed, it's impossible to delete the result.txt file, which is very necessary. What could be the problem?