Jump to content

Help to Hide DOS command window


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...