Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wscript.arguments strips all double quotes

40 views
Skip to first unread message

Paul Summerfield

unread,
Sep 6, 2001, 7:40:23 AM9/6/01
to
I am trying to pass a string containing double quote characters to a vbs
script from the command line using wscript.arguments.item(0)

When testing this it strips all double quote characters even if you double
them up as you would passing parameters between command shell scripts.

Can anybody point me in the right direction?

Thanks

Paul


Michael Harris (MVP)

unread,
Sep 6, 2001, 10:12:19 AM9/6/01
to
Unfortunately there is no way to include double quotes in the value of a command line argument to
WSH. A common workaround is to use single quotes on the command line and replace them with doubles
(using the Replace() function or a RegExp) after accessing the argument's value in the script...

--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--

"Paul Summerfield" <p...@od2.com> wrote in message news:eT8W7isNBHA.1324@tkmsftngp05...

0 new messages