Home > OS >  Bat commands to judge whether there is a certain exe files in the current process, if present, conti
Bat commands to judge whether there is a certain exe files in the current process, if present, conti

Time:10-01

Bat file is as follows:
CD new (into the new folder)
Start/w 1. Bat
CD,,
Start/w 2. Bat

1. Bat is to run an external program 1. Exe, completely run time to half an hour, now realize real time monitoring in the bat, if the system exists in the process of 1. Exe, continued to monitor, if 1. Exe, and then close the pop up the outside of the window, the window is 1. Pop up the window of the bat, back to the bat in the command), to continue to perform 2. Bat, hope this process is done automatically

The real-time monitoring, I consider is monitoring every 20 seconds to

Teacher, please help to look at, thank you ~

CodePudding user response:

Add/w parameter is not waiting for the start again after the program is running on to the next steps? If 1. Exe to quit, then starts with a/w parameters can wait 1. Exe end and then proceed to the next step

CodePudding user response:

Using autoit, simple and quick,,,
  • Related