Jump to content
Sign in to follow this  
crz

Run()

Recommended Posts

If this work:

Run("C:\Games\Diablo II\Diablo II.exe")

Run("Diablo II.exe", "C:\Games\Diablo II")

Why doesn't this?:

Run("C:\Programs\Sportingbet Poker\poker.exe")

Run("poker.exe", "C:\Programs\Sportingbet Poker")

- I've checked both directory and filename twice, and I don't get it. - Any suggestions?


Steffen "crz" Jorgensenwww.crz.dkcrz@crz.dk

Share this post


Link to post
Share on other sites

Control your environment variables. Use commandline tool set and have a look at %path%. Is there an entry "C:\Games\Diablo II"? Or is your script you started in the same directory as "diabolo II.exe"?

Share this post


Link to post
Share on other sites

The script used for "Diablo II", was not in the same directory as "Diablo II.exe". - It was in a "Scripts" folder, in the AutoIt directory. - It worked anyway.

I want the script, to be able to find the location for "poker.exe" anywhere, even when the script is on the desktop.

It works with "Diablo II.exe", why not with "poker.exe"? - I even told the script the correct directory to look for it.

I don't get it.

Help!


Steffen "crz" Jorgensenwww.crz.dkcrz@crz.dk

Share this post


Link to post
Share on other sites

That doesn't work neither.

EDIT: The script runs "poker.exe" if I put the script in the same directory as "poker.exe".. with only containing code..

Run("poker.exe")

But again, that's not what I want.

Edited by crz

Steffen "crz" Jorgensenwww.crz.dkcrz@crz.dk

Share this post


Link to post
Share on other sites

Run("C:\Programs\Sportingbet Poker\poker.exe","C:\Programs\Sportingbet Poker")oÝ÷ ÚÚºÚ"µÍ[PÚ[ÙQ   ][ÝÐÎÌLÔÙÜ[ÉÌLÔÜÜ[Ø]ÚÙ][ÝÊB[   ][ÝÐÎÌLÔÙÜ[ÉÌLÔÜÜ[Ø]ÚÙÌLÜÚÙ^I][ÝÊ

Assuming it is in the directory c:\Programs ...not c:\Program files ...

Edited by JdeB

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  

×
×
  • Create New...