Thanks!
Got it working!
Search found 2 matches
- 28 Feb 2013 14:42
- Forum: DOS Batch Forum
- Topic: If statement for two running processes
- Replies: 2
- Views: 1896
- 28 Feb 2013 02:23
- Forum: DOS Batch Forum
- Topic: If statement for two running processes
- Replies: 2
- Views: 1896
If statement for two running processes
Hi all, I am writing a script to check if two (or more) instances of the same process is running and then run a command. I have the following code: :QueryProcess tasklist | findstr wfica32.exe > nul 2>&1 IF wfica32.exe EQU 1 goto QueryProcess IF wfica32.exe EQU 2 goto END goto END :End taskkill ...