Sign in to follow this  
Followers 0
JohnRichard

Help to Hide DOS command window

6 posts in this topic

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.")

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

hurrah! it works. i never thought adding @SW_HIDE. thanks very much.

Share this post


Link to post
Share on other sites

yap. sorry if i didn't got RTFM. thanks anyways.

Share this post


Link to post
Share on other sites

hurrah! it works. i never thought adding @SW_HIDE. thanks very much.

Read in help file for more.

When the words fail... music speaks

Share this post


Link to post
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
Sign in to follow this  
Followers 0