Armand Posted October 23, 2007 Share Posted October 23, 2007 (edited) 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 October 23, 2007 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 ?! Link to comment Share on other sites More sharing options...
evilertoaster Posted October 23, 2007 Share Posted October 23, 2007 Run(@ScriptDir & '\myProg.exe "get me there let me go"') should work Link to comment Share on other sites More sharing options...
DjDeep00 Posted October 23, 2007 Share Posted October 23, 2007 Search for $CmdLine in the helpfile.. Link to comment Share on other sites More sharing options...
Armand Posted October 23, 2007 Author Share Posted October 23, 2007 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 ?! Link to comment Share on other sites More sharing options...
evilertoaster Posted October 23, 2007 Share Posted October 23, 2007 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now