Jump to content

Calling commands Using EXEC - taskkill


dlynas

Recommended Posts

Hi

I'm trying to call the command taskkill in a script of mine. the code looks like this

 

exec("taskkill /f /s $compname /im iexplore.exe", $output);

 

As far as i can tell the code is doing nothing, it doesn't throw up any errors but it doesnt work either. I have tried replacing the variable $compname with the actual computer name but this dosen't work either. Any help would me much appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/79561-calling-commands-using-exec-taskkill/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.