Archive: IIS 6 and Virtual directory update


IIS 6 and Virtual directory update
Hi All Brains,

I am stuck in (may be a small) problem again.

I have a virtual directory already setup in IIS 6 (inetmgr.exe) and I have couple of projects under it the path to those projects usually goes like as shown below:

"D:\SourceForge\1.10\ProWeb\XMLSetup\Install\Support"

Now after every release I need to update the path mannually for all those projects (say 14 in number)

so the next release the path would read as
"D:\SourceForge\1.11\ProWeb\XMLSetup\Install\Support"

This directory etc are created automatically after each release but the virtual directories do not get updated in IIS 6.

Any ideas if I can tweak registry or somthing?
Or may be a small script can do a magic.

Thanks in advance.


The wiki script uses Root.Create. Some examples found on the web suggets Root.Get should be possible in which case you should be able to update the resulting object.


hi kichik,

Thanks for your reply,
I have tried the script you said, however as I said the problem is the directories are created automatically on every release and only the problem is to create a virtual directory of the same.

I tried the script a bit but doesn;t seem to be working as my way or may be I am doing somthing wrong.

thanks pal.