laurin1 Posted May 22, 2016 Share Posted May 22, 2016 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 More sharing options...
laurin1 Posted May 22, 2016 Author Share Posted May 22, 2016 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now