I've a batch with following command to kill an exe. taskkill /IM MyTest.exe
Am running this batch file on a VM machine(Windows Server 2003) where MyTest.exe could be running in 2 different sessions. When I run the batch file on this machine,batch is able to kill MyTest.exe only in the session in which am logged in. But I want the batch file to kill MyTest.exe running in the other session too. If this is possible, how do I achieve it please? (Both sessions are logged in with the same user account.)
Thanks.
:A
echo off
taskkill /IM MyTest.exe || echo Done & goto :EOF
goto A
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.