Jump to content

ProcessExists returns invalid PID when compiled


Recommended Posts

I've used this function many times, but I am trying to use it today and getting very strange results. When I run this code from Scite (F5), I get 0 (the process is not running), which is correct:

 

$iPID = ProcessExists('CrashPlanTray.exe')
MsgBox(262144, 'Debug line ~' & @ScriptLineNumber, 'Selection:' & @CRLF & '$iPID' & @CRLF & @CRLF & 'Return:' & @CRLF & $iPID) ;### Debug MSGBOX

However, if I run this script compiled, everytime I get  a different invalid PID (one that does not exist), and again, the process is not running so it should be 0.

Keith Davis

MCSA, ZCE, A+, N+

http://www.laurinkeithdavis.com

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