prmanningham 0 Posted November 27, 2012 Hi guys, I'm having some issue with arguments here. I have this batch file that works fine and I would like to convert to autoit : "\\server\setup.exe" /s /v"/qn ALLUSERS=1 LEI_SILENT=1 PIDKEY=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX LEI_ACDID_EMAIL=my@email.com LEI_ACDID_PWD=Password SERVER=server PORT=6319" Unfortunately, the quotes in the arguements seem to be causing problems : $setup = "setup.exe" Run( $setup & " /s /v"/qn ALLUSERS=1 LEI_SILENT=1 PIDKEY=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX LEI_ACDID_EMAIL=my@email.com LEI_ACDID_PWD=Password SERVER=server PORT=6319"" ) ProcessWaitClose ( $setup ) Would you have any suggestion in how to handle quotes in this context? Thanks in advance! Share this post Link to post Share on other sites
JLogan3o13 1,404 Posted November 27, 2012 (edited) I always use a single quote for outer, and double quotes inside. Helps distinguish things: Run( $setup & '/s /v"/qn ALLUSERS=1 LEI_SILENT=1 PIDKEY=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX LEI_ACDID_EMAIL=my@email.com LEI_ACDID_PWD=Password SERVER=server PORT=6319"' ) Edited November 27, 2012 by JLogan3o13 √-1 2^3 ∑ π, and it was delicious! How to get your question answered on this forum! Share this post Link to post Share on other sites
prmanningham 0 Posted November 28, 2012 awesome, thanks for the fast support! Share this post Link to post Share on other sites
DicatoroftheUSA 38 Posted November 28, 2012 (edited) I would also load each argument into a variable for easy manipulation. eg $sServer='server' $iPort=6319 ...SERVER='&$sServer&' PORT='&$iPort Edited November 28, 2012 by DicatoroftheUSA Statism is violence, Taxation is theft.Autoit Wiki Share this post Link to post Share on other sites