Sign in to follow this  
Followers 0
dinodod

How to format this command

2 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Try

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  
Followers 0