Jump to content

Problem Running A .EXE


Recommended Posts

That doesn't matter, what matters is the double \ 's.

Just try that, trust me it will work...

C:\\Program Files\\Diablo\\Diablo II.exe -w -ect -ect

<{POST_SNAPBACK}>

Would you explain why double \'s are important? Double slashes are important in programming language where \ is an escape character. That means in order to print a \, it must be escaped with \ as well. This leads to \\. AutoIt 3 does not need to have \ escaped. C++ does, AutoIt 2 does, several other languages do. So what are you on about with the \\'s? The correct line of code in a V3 Run statement would be:

Run('"C:\Games\Copy Of Diablo II\Diablo II.exe" -w -skiptobnet -ns -title "Diablo II"', "C:\Games\Copy Of Diablo II\")
Link to comment
Share on other sites

I don't understand exactly what it does, but it works.

I understand what you're saying, but it does fix the problem.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
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
 Share

  • Recently Browsing   0 members

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