Jump to content
Sign in to follow this  

How to format this command

Recommended Posts


FYI: @scriptdir = f:\autoit apps <-- Notice the space between autoit & apps

$test = """" & @ScriptDir & "\bin\psexec" & """" & " -i \\PCNAME regsvr32 /u " & """" & "c:\program files\google\googletoolbar1.dll" & """"



RunWait(@ComSpec & " /k " & $test)

any ideas how to make this work? If I use apostrophies ( ' ) around the c:\program files ..., it errors on that portion but when I use the quotes, I get errored out on the beginning of the command.

I can't win!


Poor man's solution:

As a workaround, I could make a bat file that gets copied to c:\temp\ folder and executed which in turns executes the command BUT I don't see any errors of my command.

Edited by dinodod

Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007

Share this post

Link to post
Share on other sites


Run('"C:\Auto-It files\List Get - Internet Only.exe"','C:\Auto-It files')

See the '" "'

A decision is a powerful thing

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.