Jump to content
Sign in to follow this  
Armand

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

Recommended Posts

Armand

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

[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
evilertoaster

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

Share this post


Link to post
Share on other sites
DjDeep00

Search for $CmdLine in the helpfile..

Share this post


Link to post
Share on other sites
Armand

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


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
evilertoaster

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  

×