PDA

View Full Version : IIS Default Web Site Home Directory Local Path



Morrisey
06-10-2004, 05:30 AM
How can I modify the IIS Default Web Site Home Directory 'Local Path' during an installation?

I'm at a loss as how to do it.

Esquimaux
06-11-2004, 10:12 AM
Hi Morrisey,

I have not tested it, but try this method...


// Try to get Web Virtual Directory Object from default IIS Web Server.
set oIIsWebVirtualDir = CoGetObject("IIS://LocalHost/W3SVC/1/Root", "");

if ( IsObject(oIIsWebVirtualDir) ) then
oIIsWebVirtualDir.Path = szNewPath;
oIIsWebVirtualDir.SetInfo();
endif;

Hope it works!

Good luck.

Morrisey
06-11-2004, 10:14 AM
:) Thank you for your suggestion, I will try it and get back.

Thanks again.

Morrisey
06-14-2004, 10:05 AM
Hello Esquimaux,

Works fine, thank you very much for your help.