Jump to content

Recommended Posts

Posted

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

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- #
Posted

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"?

Posted

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

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

  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Thanks alot JdeB! - That works.

- And thanks to everyone else.

- crz

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...