Jump to content

Recommended Posts

Posted (edited)

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" & """"

MsgBox(0,"",$test)

;Exit

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!

Ideas?

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...