Jump to content

Recommended Posts

Posted

I wanna Process kill with other program..

--

RunWait("ptkill.exe 580") ==> Good Work.

but

$pid=ProcessExits("program.exe")

RunWait("ptkill.exe $pid") or

RunWait("ptkill.exe" & $pid) not work.

What's Problem?

Thx.

Posted (edited)

I wanna Process kill with other program..

--

RunWait("ptkill.exe 580") ==> Good Work.

but

$pid=ProcessExits("program.exe")

RunWait("ptkill.exe $pid") or

RunWait("ptkill.exe" & $pid) not work.

What's Problem?

Thx.

If I were you I will do:

Run("ptkill.exe")
While 1
If $pid=ProcessExist("ptkill.exe") Then
ProcessClose($pid)
EndIf
Sleep(250)
WEnd

Edit: Added sleep

Edited by Generator
Posted (edited)

RunWait("ptkill.exe" & $pid) not work.

I'm only guessing ,pretty sure it'll be because you've not left a space between ptkill.exe and the process id.

eg:

RunWait("ptkill.exe" & " " & $pid)

Cheers

Edited by smashly
Posted

I'm only guessing ,pretty sure it'll be because you've not left a space between ptkill.exe and the process id.

eg:

RunWait("ptkill.exe" & " " & $pid)
<= It's work good for me ^^

Bye.. Have nice day..!!

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
  • Recently Browsing   0 members

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