Sign in to follow this  
Followers 0
crz

Run()

8 posts in this topic

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



#2 ·  Posted (edited)

Maybe, just Run("poker.exe")

And save your script in the directory, Though, thats not what your looking for is it?

Edited by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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

Perhaps Poker.exe is a 16-bit program.

Try:

Run(@ComSpec & '/c "C:\Programs\Sportingbet Poker\poker.exe"')

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

#7 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks alot JdeB! - That works.

- And thanks to everyone else.

- crz


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

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