Jump to content
Sign in to follow this  
Armand

Run() - how do i use it with Spaced-Parameters?! [SOLVED]

Recommended Posts

can anyone please be specific and guide me as to how do i use the RUN() function and send spaced parameters through it ?

tried:

Run('"' & @ScriptDir & 'myProg.exe" 'get me there' 'let me go')
Run('"' & @ScriptDir & 'myProg.exe get me there let me go'')
Run('"' & @ScriptDir & 'myProg.exe" "get me there let me go")

my program is an au3 compiled exe.

while checking $cmd array i've got the command recieved as seperated words - WHY ?

i need them to be sent as one variable... HOW ?

Edited by Armand

Share this post


Link to post
Share on other sites

bah... no go for the first answer of: evilertoaster

as for the 2nd... thanks but no thanks... i wouldn't have asked if i hadn't already read it...

P.S - i made a work around... abit stupid but working!

stringreplace($param," ",".<*>.")

and then in the command parser in the .exe file i've made it replace it back as it was...

Share this post


Link to post
Share on other sites

hummm i have myprog.au3 compiled-

MsgBox(0,$CmdLine[0],$CmdLine[1])

and i run this script-

Run(@ScriptDir & '\myProg.exe "get me there let me go"')

which gives the picture shown.... this not what you're after?

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