Jump to content

Run parameters dont work from script


Justin
 Share

Recommended Posts

I seem to be having a problem running a program with command line parameters from my script. It works fine if I run from a cmd console, but when I run the following code from the script, the exe i'm trying to call says it cannot find the file specified.

Any ideas?

$GlovePieScriptFile = "Mario_swf"



RunWait('GlovePIE029\GlovePie.exe -' & $GlovePieScriptFile)

edit: fixed by adding GlovePIE029\ in front of $GlovePieScriptFile

Edited by Justin
Link to comment
Share on other sites

Hello,

When I first used parameters I had the same problem... the correct way is to insert a space before the parameter and above all to formally put

it between quotes. The variable $GlovePieScriptFile = "kdmkfd" is in the command line interpreted without the quotes. That's why you have to add it again....

Try this :

RunWait('GlovePIE029\GlovePie.exe -' & " " & '"' & $GlovePieScriptFile & '"')

Rem : The double quote is enclosed in single quotes, that permits to make it visible

Bye

FreeRider

FreeRiderHonour & Fidelity

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...