I've been stuck on this issue for the past week now and it's really
driving me crazy. I need to know how to programmatically add/delete
extensions in web directory when I create the web.

What I mean is that if you open the IIS manager, then right click on
the default web site, go down to properties and open that up. Then
click on the home directory tab, and then hit the configuration button.
There is a list of extensions there that I need to manipulate when I
make the web site.

I've found tons of examples and code, but I don't know which one to
use. Also I'm doing this all in vbscript. If you could provide me a
sample, or show me to a little code snippit or something I would be
VERY relieved.

Thanks a ton in advance.

Re: IIS 6 modifying DLL or Script Map Help by Kristofer

Kristofer
Tue Jun 27 12:46:38 CDT 2006

Hello,

You want to edit the ScriptMaps property.

This example should help you:
http://www.iisfaq.com/Default.aspx?tabid=2792

Also see:
http://blogs.msdn.com/david.wang/archive/2004/12/02/273681.aspx


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


Millhouse50 wrote:

>I've been stuck on this issue for the past week now and it's really
>driving me crazy. I need to know how to programmatically add/delete
>extensions in web directory when I create the web.
>
>What I mean is that if you open the IIS manager, then right click on
>the default web site, go down to properties and open that up. Then
>click on the home directory tab, and then hit the configuration button.
>There is a list of extensions there that I need to manipulate when I
>make the web site.
>
>I've found tons of examples and code, but I don't know which one to
>use. Also I'm doing this all in vbscript. If you could provide me a
>sample, or show me to a little code snippit or something I would be
>VERY relieved.
>
>Thanks a ton in advance.