Sign in to follow this  
Followers 0
dryper

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

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

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  
Followers 0