nollert Posted September 29, 2011 Share Posted September 29, 2011 I'm trying to run a program and it comes back with error, PID 0 and never executes. I can't tell what is wrong. Any suggestions as to why wthis will not work? I copied the exection line directly out of a shortcut properties and that shortcut works just fine. $PID = Run("C:\Program Files\TrueCrypt\Tax-Aide\Start_Tax-Aide_Drive.exe", "", @SW_MAXIMIZE) msgbox(0, "pid", $PID) This program (Start_Tax-Aide_Drive.exe) actually executes the native program and the following works fine $PID = Run("C:\Program Files\TrueCrypt\trueCrypt.exe", "", @SW_MAXIMIZE) I'm assuming this has something to do with shelling out to a program or something but I'm very new at this and can't seem to get anywhere. Tom Link to comment Share on other sites More sharing options...
sleepydvdr Posted September 29, 2011 Share Posted September 29, 2011 Does the shortcut link for the Tax-Aide program work when you click on it (either from the desktop or from the start menu)? If it does, right click on the icon and go to Properties. Tell us exactly what the Target and Start In fields say (quotes & stuff after the quotes - the exact lines). #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
nollert Posted September 29, 2011 Author Share Posted September 29, 2011 "Start in" is blank. target is exactly what I listed in the original message. As it turns out, I tried SHELLEXECUTEWAIT and it seems to work fine now. Thanks for your help. 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