Armand 2 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 ?! Share this post Link to post Share on other sites
evilertoaster 3 Posted October 23, 2007 Run(@ScriptDir & '\myProg.exe "get me there let me go"') should work Share this post Link to post Share on other sites
DjDeep00 0 Posted October 23, 2007 Search for $CmdLine in the helpfile.. Share this post Link to post Share on other sites
Armand 2 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 ?! Share this post Link to post Share on other sites
evilertoaster 3 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? Share this post Link to post Share on other sites