Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

how to pass parameters to iisext containing quotes (W2003)?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  doublication of network users  
Author Message
user1385

External


Since: Feb 05, 2004
Posts: 5



(Msg. 1) Posted: Wed Feb 11, 2004 12:18 am
Post subject: how to pass parameters to iisext containing quotes (W2003)?
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: how to pass parameters to iisext containing quotes (W2003)? 
Back to top
Login to vote
jmaltz

External


Since: Aug 22, 2003
Posts: 710



(Msg. 2) Posted: Wed Feb 11, 2004 12:18 am
Post subject: Re: how to pass parameters to iisext containing quotes (W2003)? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Try double apostrophes ('s)

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
<a style='text-decoration: underline;' href="http://www.visualwin.com" target="_blank">http://www.visualwin.com</a> - A Windows Server 2003 visual, step-by-step
tutorial site Smile
<a style='text-decoration: underline;' href="http://vpc.visualwin.com" target="_blank">http://vpc.visualwin.com</a> - 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 RemoveThis @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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how to pass parameters to iisext containing quotes (W2003)? 
Back to top
Login to vote
user1385

External


Since: Feb 05, 2004
Posts: 5



(Msg. 3) Posted: Wed Feb 11, 2004 4:40 am
Post subject: Re: how to pass parameters to iisext containing quotes (W2003)? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.TakeThisOut@mvps.org> wrote:

 >Hi,
 >
 >Try double apostrophes ('s)<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: how to pass parameters to iisext containing quotes (W2003)? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Does IIS v6.0 come with W2003 server? - Or is it a seperate purchase??

IIS pass through - How can I have one IIS server pass through request to another IIS server? Redirect does not work in my case as the second IIS server is behind the firewall and only accessible by the first IIS server. Any help will be highly appreciated.

How to enable a web application using CGI on IIS6 & W2003? - I am trying to get an application running on IIS6 on a new Windows 2003 server. The application is a web viewer of a software versioning system repository (CVS). The viewer is named ViewCvs and is programmed via CGI using Python as the scripting language...

IIS 6.0 Fail-Safe Cluster in W2003 - Hi, for some hours now i´m reading white papers, knowledge bases, made searches in search engines but nothing gave me the answears i´m looking for... I´m trying to install e Fail-Safe Cluster (2 nodes MSCS) of IIS (not NLBC), but i don´t have any..

Please help! IIS requesting username and pass. - Hi all, We are running Windows 2003 Web Edition. Just moved from Windows 2000 Server. We migrated our sites over to a new Win2003 system and certain sites now a requesting the visitor authenticate themselves when browsing certain directories. I do..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]