Jump to content

How to run Programs thats not in the same Dir as the .au3 file?


dryper
 Share

Recommended Posts

Hello i cant figure out how i can run a file that isint in the root folder.. ok heres my question :)

The project is in a Directory called "Project X" i want the .au3 file to run a .exe file that is in Project X\data\test\ what do i need to write in the Run code?.. i write:

Run (@WorkingDir , "filename.exe") <---- this have to be wrong.. what should i write to get it working?

Link to comment
Share on other sites

Hello i cant figure out how i can run a file that isint in the root folder.. ok heres my question :)

The project is in a Directory called "Project X" i want the .au3 file to run a .exe file that is in Project X\data\test\ what do i need to write in the Run code?.. i write:

Run (@WorkingDir , "filename.exe") <---- this have to be wrong.. what should i write to get it working?

I noticed you put @WorkingDir first. The exe should go first:

Run ( "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )

furthermore, If the script is the project x folder then do:
Run(".\X\data\test\filename.exe",@WorkingDir )
Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
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...