I am doing the following on a Windows 2003 server.
I am trying to set up a web service extension through the use of
iisext.vbs. I need to add the following as a new extension:
c:\programs\python23\python.exe "%s"
Please note the quotes around %s.

To do this I tried the following (on one line):
cscript.exe %systemroot%\system32\iisext.vbs
"c:\programs\python23\python.exe ""%s""" 1 PythonScript 1 PythonScript

It executes fine but the quotes get stripped off so the net result is
that I get ...\python.exe %s
which does not work.

How can I make sure that the quotes stay in place when I execute the
script?

/Bo

Re: how to pass parameters to iisext containing quotes (W2003)? by Jonathan

Jonathan
Tue Feb 10 18:10:16 CST 2004

Hi,

Try double apostrophes ('s)

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


"Bo Berglund" <bo.berglund@telia.com> wrote in message
news:loei201lboc0qfhunj69mjjmg4aa9a51kl@4ax.com...
> I am doing the following on a Windows 2003 server.
> I am trying to set up a web service extension through the use of
> iisext.vbs. I need to add the following as a new extension:
> c:\programs\python23\python.exe "%s"
> Please note the quotes around %s.
>
> To do this I tried the following (on one line):
> cscript.exe %systemroot%\system32\iisext.vbs
> "c:\programs\python23\python.exe ""%s""" 1 PythonScript 1 PythonScript
>
> It executes fine but the quotes get stripped off so the net result is
> that I get ...\python.exe %s
> which does not work.
>
> How can I make sure that the quotes stay in place when I execute the
> script?
>
> /Bo



Re: how to pass parameters to iisext containing quotes (W2003)? by Bo

Bo
Tue Feb 10 18:40:42 CST 2004

Already tried that, but cscript eats *all* quotes for breakfast...
Putting this: ""%s"" or this: """%s""" or this: "%s" is all the same,
it results in %s.

I now "solved" the problem by hacking the iisext.vbs file (comes with
IIS6 from Microsoft) in such a way as to remove all commands except
the ones I need and then I also added a Replace() call for replacement
of # with " in the first argumant to the script.
So my call to cscript now contains the parameter #%s# instead and it
gets replaced and used once the modified iisext.vbs is loaded.

But I wish I did not have to do this....

/Bo


On Tue, 10 Feb 2004 19:10:16 -0500, "Jonathan Maltz [MS-MVP]"
<jmaltz@mvps.org> wrote:

>Hi,
>
>Try double apostrophes ('s)