JohnRichard Posted October 8, 2008 Share Posted October 8, 2008 hi all. i have this script which kills process on computer using the pskill command. however when the script executes pskill, it is giving the DOS command window. i wanted to hide the DOS command window. how will i do that. i appreciate all your help. code: #include <Process.au3> Local $host = "testpc" Local $param = "\\" & $host & " " Local $process = "notepad.exe -t" Local $execute = $param & $process $Run = Run("pskill.exe " & $execute, @SystemDir) Sleep(1500) MsgBox(0, "", "Process has been killed.") Link to comment Share on other sites More sharing options...
Andreik Posted October 8, 2008 Share Posted October 8, 2008 hi all. i have this script which kills process on computer using the pskill command. however when the script executes pskill, it is giving the DOS command window. i wanted to hide the DOS command window. how will i do that. i appreciate all your help. code: #include <Process.au3> Local $host = "testpc" Local $param = "\\" & $host & " " Local $process = "notepad.exe -t" Local $execute = $param & $process $Run = Run("pskill.exe " & $execute, @SystemDir) Sleep(1500) MsgBox(0, "", "Process has been killed.") $Run = Run("pskill.exe " & $execute, @SystemDir,@SW_HIDE) When the words fail... music speaks. Link to comment Share on other sites More sharing options...
cherdeg Posted October 8, 2008 Share Posted October 8, 2008 how will i do that.i appreciate all your help.Jon,what about doubleclicking the word "run" in your code and pressing F1??? The help file entry mentions @SW_HIDE in the 8th line.Next time: OYE & RTFM!!!openyoureyesandreadthefuckingmanual Link to comment Share on other sites More sharing options...
JohnRichard Posted October 8, 2008 Author Share Posted October 8, 2008 hurrah! it works. i never thought adding @SW_HIDE. thanks very much. Link to comment Share on other sites More sharing options...
JohnRichard Posted October 8, 2008 Author Share Posted October 8, 2008 yap. sorry if i didn't got RTFM. thanks anyways. Link to comment Share on other sites More sharing options...
Andreik Posted October 8, 2008 Share Posted October 8, 2008 hurrah! it works. i never thought adding @SW_HIDE. thanks very much.Read in help file for more. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now