Jump to content

Run an exe thats in a different folder


Recommended Posts

i made a yahoo script that must start yahoo itself

i understand that to do this you must place the the script in the same place as the exe you want to run and place this in your code

run("YahooMessenger.exe")
but i want to run the exe when my script is in a different file

any help appreciated!

Link to comment
Share on other sites

  • Moderators

ShellExecute("Drive Leter:\PathToYahooDirectory\YahooMessenger.exe")

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I do believe you can just put the full path to the file in "Run()"

Example:

Run("C:\Program Files\Yahoo!\YahooMessenger.exe")

If that doesn't work, try "Shellexecute" with the full path

Link to comment
Share on other sites

i made a yahoo script that must start yahoo itself

i understand that to do this you must place the the script in the same place as the exe you want to run and place this in your code

run("YahooMessenger.exe")
but i want to run the exe when my script is in a different file

any help appreciated!

use the full path of the file.

for example

run("C:\Program Files\Yahoo\YahooMessenger.exe")
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...