Sign in to follow this  
Followers 0
2words4uready

Run an exe thats in a different folder

5 posts in this topic

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!


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
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

Share this post


Link to post
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")

Share this post


Link to post
Share on other sites

use the full path of the file.

for example

run("C:\Program Files\Yahoo\YahooMessenger.exe")
thank you and has anyone heard of the Funny Uts Scandal.avi.exe virus im working on a script that removes the virus

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

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