Jump to content

Recommended Posts

I'm having problems with Run..

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

that doesn't work, it says that the system cannot find the file specified..

Error: Unable to execute the external program.

The system cannot find the file specified.

however, with Run from the start menu, this works:

"C:\Program Files\Diablo II\Diablo II.exe"

the following also works with autoit:

Run("Notepad.exe", "C:\WINDOWS")

i tried moving the exe to the windows directory and it worked.. but it has to be in the Diablo II directory in program files in order to run properly..

so... the problem seems to lie in the Path... but what could it be?

also, i have not been able to get autoit to run a shortcut.. obviously this could solve my problem entirely, as i can just drop a shortcut into the windows directory..

also, i need to run the application with a commandline option: -w

i'd be greatful for any help you could give me

thank you,


Link to post
Share on other sites

Hey bradvexille, I think all you need to do is:

Run( "C:\Program Files\Diablo II\Diablo II.exe -w" )

and that's it

To run a shortcut you could do:

Run( "cmd /c start c:\documents and settings\user\desktop\shortcut.lnk" )

I'm pretty sure, you may want to hide the window uh, @SW_HIDE or something like that.

Link to post
Share on other sites
  • Developers


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


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

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

    No registered users viewing this page.

  • Create New...