I want to write a line in a batch script to check if there is a specified program in the process. If there is, use GOTO to close another specified program. If not, use GOTO to execute other commands.
Thank you, brother. I know how to use TASKLIST to check, but I want to compile a program. For example, if Photoshop.exe is detected in the process, in the batch script, use the GOTO command to close another specified program TheWorld.exe. If Photoshop.exe is not detected, use GOTO to execute other program commands.
[ Last edited by willsort on 2005-11-25 at 19:34 ]
Thank you, brother. I know how to use TASKLIST to check, but I want to compile a program. For example, if Photoshop.exe is detected in the process, in the batch script, use the GOTO command to close another specified program TheWorld.exe. If Photoshop.exe is not detected, use GOTO to execute other program commands.
[ Last edited by willsort on 2005-11-25 at 19:34 ]
