, that is, with an empty window title in quotes as its first argument. You can remove all of the leading (all that does is suppress the command-reporting for that one line.)Īlso, start is happier as start "". You could extend this, and use say the date and time to augment the filename so that this entire process could itself be run many times in parallel.īTW - by starting the procedure with off In all probability, it would be best if the subsidiary processes could take an extra parameter (the name of this sub-process's "processfinished" file) rather than having a fixed number for each. Only if the 3 files are present will it continue. When the sub-processes have started, the procedure waits until each has created its own ".processcompleted" file by checking whether any of the 3 is missing, if it it, timeout for 1 second and look again. bat files, create a file "%temp%\x.processfinished" where x=1 for the first process, 2 for the second and so on. :: continues here when all (3) processes have finished.ĭel "%temp%\*.processfinished" >nul 2>nul In your main batch, del "%temp%\*.processfinished" >nul 2>nulįor /L %%a in (1,1,3) do if not exist "%temp%\%%a.processfinished" timeout /t 1 >nul
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |