JohnRichard Posted October 8, 2008 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.")
Andreik Posted October 8, 2008 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)
cherdeg Posted October 8, 2008 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
JohnRichard Posted October 8, 2008 Author Posted October 8, 2008 hurrah! it works. i never thought adding @SW_HIDE. thanks very much.
JohnRichard Posted October 8, 2008 Author Posted October 8, 2008 yap. sorry if i didn't got RTFM. thanks anyways.
Andreik Posted October 8, 2008 Posted October 8, 2008 hurrah! it works. i never thought adding @SW_HIDE. thanks very much.Read in help file for more.
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