is99
20th October 2006 20:33 UTC
Â_
Â_
Archive: Virtual dir in IIS
Â_
Â_
I do not understand the above thing, but what I suggest is you need to run a .VBS file which contains a code like this...
Set Root = GetObject("IIS://LocalHost/myWebSite/ROOT")
if (E******mber <> 0) then
wscript.Quit
end if
Set Dir = Root.Create("IIsWebVirtualDir", "Test")
Dir.Path = "C:\ "
Dir.AccessRead = True
Dir.AccessWrite = False
Dir.EnableDirBrowsing = False
Dir.AppFriendlyName = "Test"
Dir.SetInfo
Set Dir = Nothing
Set Root = Nothing
I have not tested this yet, I found this code long back on internet. Hope this helps.