crz Posted July 4, 2006 Share Posted July 4, 2006 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 Link to comment Share on other sites More sharing options...
AzKay Posted July 4, 2006 Share Posted July 4, 2006 (edited) Maybe, just Run("poker.exe") And save your script in the directory, Though, thats not what your looking for is it? Edited July 4, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Briegel Posted July 4, 2006 Share Posted July 4, 2006 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"? Link to comment Share on other sites More sharing options...
crz Posted July 4, 2006 Author Share Posted July 4, 2006 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 Link to comment Share on other sites More sharing options...
Briegel Posted July 4, 2006 Share Posted July 4, 2006 Perhaps Poker.exe is a 16-bit program. Try: Run(@ComSpec & '/c "C:\Programs\Sportingbet Poker\poker.exe"') Link to comment Share on other sites More sharing options...
crz Posted July 4, 2006 Author Share Posted July 4, 2006 (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 July 4, 2006 by crz Steffen "crz" Jorgensenwww.crz.dkcrz@crz.dk Link to comment Share on other sites More sharing options...
Developers Jos Posted July 4, 2006 Developers Share Posted July 4, 2006 (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 July 4, 2006 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. Link to comment Share on other sites More sharing options...
crz Posted July 4, 2006 Author Share Posted July 4, 2006 Thanks alot JdeB! - That works. - And thanks to everyone else. - crz Steffen "crz" Jorgensenwww.crz.dkcrz@crz.dk Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now