I want to do the following:
START /W "%~dp0Generator\TGenerator" TGenerator.exe
START /W "%~dp0VGenerator" VGenerator.exe
I found this solution at How to wait for a process to terminate to execute another process in batch file
But if I use this /W I get the error, that TGenerator.exe and VGenerator.exe were not found.
But if I use instead:
START /d "%~dp0Generator\TGenerator" TGenerator.exe
START /d "%~dp0VGenerator" VGenerator.exe
I have no problems. So the /W is the problem. But if I can't use /w how can I now say the batch file: Please wait for the end of TGenerator.exe bevor you start VGenerator.exe