Jump to content
Sign in to follow this  

problems with strings, double quotes going into a Run()

Recommended Posts

ok my problem is best described with some code...

$1d2exe = '"C:\Program Files\Diablo II\Diablo II.exe" -w -mpq j.mpq -res800 -notitle -skiptobnet -title "Diablo II J"'
Global $d2exe = $1d2exe;this is changed with other $acc = $2acc further down to load other apps/diferent switches

the game loads up but with problems.

i've tried adding double quotes in various ways & runing it through _RunDos() with no avail.

yes this is used to launch the game.

the problem is i think that the command switches arn't getting thru too well (the game reports unknown game version when connecting to server)

i've tried incleuding the working directory & that just put it into the -title.

a solution might be to have _RunDos() point to a shortcut, but thats just silly... i should be able to run it with just the script. :lmao:

im just stumped here. :ph34r:

im shure it has somthing to do with double quotes, there evil! :geek:

people are anoying, am i? ;) v2.95

Share this post

Link to post
Share on other sites


I do not have the game, but I found this elsewhere in the forum:

Run('Diablo II.exe -w -mpq j.mpq -res800 -notitle -skiptobnet -title "Diablo II J"', "C:\Program Files\Diablo II")
Run(@ProgramfilesDir & "\Diablo II\D2Loader.exe -w -skiptobnet", @ProgramfilesDir & "\Diablo II", @SW_MAXIMIZE)

So long,


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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  

  • Create New...