Alan Foxmore
2006-04-12 18:11:13 UTC
Hi Everyone,
I don't know if this is so much a VBS question as a Windows question.
I want to pass several command line parameters to a VBS. Some of the
command line parameters have embedded double-quotation marks.
For example:
MyScript.vbs "title=She said, "Hello""
Unfortunately, I don't know how to successfully pass double quotation
marks on the command line. Using a backslash to escape the double
quotes does not work.
For example, this fails:
MyScript.vbs "title=She said, \"Hello\""
Is there a way to pass embedded double-quotes on the command line? This
seems so simple, it must be possible. I've searched Google high and low
to no avail.
Thanks much.
--
Alan
I don't know if this is so much a VBS question as a Windows question.
I want to pass several command line parameters to a VBS. Some of the
command line parameters have embedded double-quotation marks.
For example:
MyScript.vbs "title=She said, "Hello""
Unfortunately, I don't know how to successfully pass double quotation
marks on the command line. Using a backslash to escape the double
quotes does not work.
For example, this fails:
MyScript.vbs "title=She said, \"Hello\""
Is there a way to pass embedded double-quotes on the command line? This
seems so simple, it must be possible. I've searched Google high and low
to no avail.
Thanks much.
--
Alan