batch files

dragon2309

P.I Dragon
Hey there, i am making a quick batch file to shut down all the processes is dont need before i play a game, things like AVG, Zone Alarm, WinAmp's client etc... it all goes well until it tries to shutdown the xonealarm process, it says access is denied, so i cant shut it down unless i go into it and actually close it. Which kinda defeats the point of making a batch file... lol

any ideas would be great, im currently using the "taskkill /f /im <process> " method, any ideas how i can get it to kill the zlclient.exe process....??


dragon2309
 
hey dragon

The process you are trying to kill is running with NETWORK SERVICE as its security descriptor; as a consequence taskkill wont stop it. You need to run your kill command through the low level debugger ntsd. Try this command

ntsd -pn "zlclient.exe" -c "q"
 
sorry apj, i forgot about this thread, only just found it again, i tried what you said, added that line to the batch file, it tries to do it but still comes up with access denied as shown below:

cmd1wz.jpg


dragon
 
any thoughts apj.... im at a loss here, is there not anyway i can let it know that its actually me trying to shut it down and not some virus (i assume thats why its blocking it)

dragon
 
Back
Top