[Tutor] IIS and Virtual directories
Tim.Golden at viacom-outdoor.co.uk
Thu Nov 23 09:17:04 CET 2006
| I have been trying to figure out how to create an IIS Virtual
| Directory through Python but can't find anything that works.
| I have done it in the past with Perl with the script below
| but can't seem to figure out how to do it in Python. I was
| wondering if someone could point me in the right direction.
| Thank you,
| P.S."Hope everyone who reads this has a nice Thanksgiving!"
Caveat: I don't run IIS myself, so I'm working on paper here.
Couple of starting points. Basically everything you're
doing there looks like it could be handled by the
win32com.client module of the pywin32 extensions.
(Looks like an almost literal translation).
Vague code example:
from win32com.client import GetObject
virtual_dir = GetObject ("IIS://blah/blah")
virtual_dir.DoStuff ("param1", "param2")
As an alternative, you might be able to use WMI (altho'
I'm not sure why you'd want to if you could use the
technique above). Still, for completeness, here's a
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
More information about the Tutor