Jump to content
Sign in to follow this  
nollert

Run Program problem

Recommended Posts

nollert

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

Share this post


Link to post
Share on other sites
sleepydvdr

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>

Share this post


Link to post
Share on other sites
nollert

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

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
Sign in to follow this  

×