Jump to content

Calling Exe files in different locations


boat_58
 Share

Recommended Posts

I want to create a gui with 4 buttons in it. Each button is a link that when click, will call a script that i have wrote. The problem i am having is that i only know how to call an exe file, that is inside the same folder as the master script. Below is an example of the code i am using to call the exe file. This seems to only work when that exe file is in the same folder as the script. 

Case $Script_Example
    Script_Example()

Func Script_Example()
    Run("Script_Example.exe")
EndFunc   ;

Can someone help me with how i can call an exe file, that is in a different folder location?

 

Thanks in advance

Edited by boat_58
Link to comment
Share on other sites

3 minutes ago, boat_58 said:

Can someone help me with how i can call an exe file, that is in a different location?

Simply enter the full path.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

3 minutes ago, Musashi said:

Simply enter the full path.

Awesome, i am not sure why i didn't think to try it before. I just tried the below and it worked

Case $Script_Example
    Script_Example()

Func Script_Example()
    Run("E:\External Drive\Backup\AutoIt\AutoIt\Scripts\Examples\Script_Example.exe")
EndFunc   ;

Thank you so much

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