Jump to content

Recommended Posts

Posted

I would like to do the following:

run pskill.exe from the temp directory.

something like:

RunWait(@ComSpec & " /c " & @TempDir/pskill.exe "notepad")

I cannot get it to work, could someone please help me?

Greetings

Reyer

Posted (edited)

; One possibility..... you don't need to worry about ComSpec because pskill is an EXE file

RunWait(@TempDir & "\pskill.exe notepad", "", @SW_HIDE)

; Another possibility in case the paratmer contained spaces instead being one word

$prevWorkingDir = @WorkingDir

FileChangeDir(@TempDir)

RunWait('pskill.exe "notepad"', "", @SW_HIDE)

FileChangeDir($prevWorkingDir)

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

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
×
×
  • Create New...