I need to call a iis script file to set up an application extension in
the webserver. The call must go through cscript. So the resulting
structure is:
cscript myvbscript <myparameters>
<myparametrs> is something like python.exe "%s"

When I execute this it turns out that myvbscript gets the parameters
with the double quotes stripped off. It does not help to double up the
quotes either.

Is there some escape sequence that makes it possible to pass a "
character through cscript into the call to the vbscript???

/Bo

Re: how do I keep double quotes in parameters to cscript? by Torgeir

Torgeir
Tue Feb 10 15:30:38 CST 2004

Bo Berglund wrote:

> I need to call a iis script file to set up an application extension in
> the webserver. The call must go through cscript. So the resulting
> structure is:
> cscript myvbscript <myparameters>
> <myparametrs> is something like python.exe "%s"
>
> When I execute this it turns out that myvbscript gets the parameters
> with the double quotes stripped off. It does not help to double up the
> quotes either.
>
> Is there some escape sequence that makes it possible to pass a "
> character through cscript into the call to the vbscript???

Hi

No, you will need to do some workarounds:

http://groups.google.com/groups?selm=ejpH23tNBHA.1964%40tkmsftngp05

http://groups.google.com/groups?selm=393E8B25.C3191E62%40pressroom.com

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter