Jump to content

Run Program problem


nollert
 Share

Recommended Posts

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

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

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