I think you’d use something like…

 

Ws.exec(“command “ & chr(34) & “mystring” & chr(34) & “”) … the idea being that chr(34) is the ascii translation of “.  It’s something like that… J

 

marcus c. oh

core technologies - open systems technical operations

cox communications, inc.

 

[v] 404.847.6117      [f] 404.269.3030

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Creamer, Mark
Sent: Friday, August 13, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] (hopefully) quick syntax question

 

Guys, I’m stuck on something that’s probably easy…I’m doing a DC startup script, and it uses the WScript Exec method. The command includes a string with a space, so from a command line, I would normally type:

                Command “my string”

 

Since the syntax of the Exec method is ws.exec(“command”), I don’t know how to deal with the quotes. This doesn’t seem to work:

                Ws.exec(“command “my string””)

 

How do I build that line properly? Thanks!

Mark

Reply via email to