Steve M Posted August 22, 2008 Share Posted August 22, 2008 Hi all, I've been using Autoit for a while to help automate software installs. I regularly use commands like the following: RunWait(@ComSpec & " /c " & 'msiexec /i "\\servername\installs\msi\2003 Corporate V30\2003 Corporate v30.msi" /qb!',"" ,@SW_HIDE)oÝ÷ ز)ÜxZ½é¨ëajz'zÈxÛhmæëhºÇ½ªâi¹^zeiǨOvÓݬz»Þ®v¦y*&zØb b殶se'VåvB6öÕ7V2fײgV÷C²ö2gV÷C²fײb33¶×6WV2öb33c¶ç7FÆÇ6÷W&6RfײgV÷C²b3#¶ç7FÆÇ2b3#¶×6b3#³#26÷'÷&FRc3b3#³#26÷'÷&FRc3æ×6gV÷C²÷"b333²b33²ÂgV÷C²gV÷C²Ä5uôDR I can't quite work out how to have that variable inside all of the various quotes that are required for this command. Is this even do-able, or is there a better way to do this? Thanks, Steve Link to comment Share on other sites More sharing options...
avery Posted August 22, 2008 Share Posted August 22, 2008 (edited) Hi all, I've been using Autoit for a while to help automate software installs. I regularly use commands like the following: RunWait(@ComSpec & " /c " & 'msiexec /i "\\servername\installs\msi\2003 Corporate V30\2003 Corporate v30.msi" /qb!',"" ,@SW_HIDE)ƒoÝŠ÷ ز)ÜxˆZ½é¨ëajz'zÈxŒžÛhm曕ëhºÇš½ªâi¹^ŠzeiǨOvÓݬz»Þ®v¦y*&zØbž b‘殶ˆse'Våv—B„6öÕ7V2fײgV÷C²ö2gV÷C²fײb33“¶×6–W†V2ö’b33c¶–ç7FÆÇ6÷W&6RfײgV÷C²b3“#¶–ç7FÆÇ2b3“#¶×6’b3“#³#26÷'÷&FRc3b3“#³#26÷'÷&FRc3æ×6’gV÷C²÷"b333²b33“²ÂgV÷C²gV÷C²Ä5uô„”DR I can't quite work out how to have that variable inside all of the various quotes that are required for this command. Is this even do-able, or is there a better way to do this? Thanks, Steve RunWait(@ComSpec & ' /c notepad ' & @WindowsDir & '\Security\Logs\scesrv.log', "", @SW_HIDE) RunWait(@ComSpec & ' /c secedit /configure /db "' & @WindowsDir & '\security\Database\db.sdb" /cfg "' & @WindowsDir & '\security\templates\setup security.inf" /overwrite /quiet /verbose', "", @SW_HIDE) I think you are looking for '&' Hope this helps. Edited August 22, 2008 by avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org Link to comment Share on other sites More sharing options...
AoRaToS Posted August 22, 2008 Share Posted August 22, 2008 something like "c:\" & $docs & "\hello.txt" would probably be enough, try it... s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
Steve M Posted August 22, 2008 Author Share Posted August 22, 2008 (edited) Thanks all! I was missing the & before the variable <slaps forehead> Still a N00B after all this time..... Edited August 22, 2008 by Steve M 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