laurin1

ProcessExists returns invalid PID when compiled

2 posts in this topic

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

Share this post


Link to post
Share on other sites



Never mind. I'm a goofball. I guess I need another cup of compiled. I compiled the script into the same name as the process that I am testing for. :)


Keith Davis

MCSA, ZCE, A+, N+

http://www.laurinkeithdavis.com

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