dlynas Posted November 30, 2007 Share Posted November 30, 2007 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 Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 30, 2007 Share Posted November 30, 2007 where is taskkill stored what the output ? Quote Link to comment Share on other sites More sharing options...
dlynas Posted November 30, 2007 Author Share Posted November 30, 2007 taskkill is a windows command just like ping which i have working perfectly. There is no output as far as i can tell, $output is an array and when i try and echo $output[0] is says it comes up with an error. Dave. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 30, 2007 Share Posted November 30, 2007 whats the output of print_r($output); Quote Link to comment Share on other sites More sharing options...
dlynas Posted December 3, 2007 Author Share Posted December 3, 2007 The output of print_r($output) is Array () Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.