Virtual Directory Binding

   

Virtual Directory Binding

In the Metabase hierarchy, the virtual directory sits one level below the site. To bind to a virtual directory under any site, simply reference the desired site's index number, and then append the name of the virtual directory.

The following Visual Basic code demonstrates the binding of the IISHELP virtual directory under the Default Web Site:

 Dim VirtualDirectory as IADs Dim ServerName As String Dim Index As Long Dim VirtualDirectoryName as String ServerName = "IIS_Server_Name" Index = Site_Index_Value VirtualDirectoryName = "Virtual_Directory_Name" Set VirtualDirectory = GetObject("IIS://" & ServerName & "/W3SVC/" & Index & "/ROOT" & graphics/ccc.gif VirtualDirectoryName) 

   
Top


Windows NT. 2000 ADSI Scripting for System Administration
Windows NT/2000 ADSI Scripting for System Administration
ISBN: 1578702194
EAN: 2147483647
Year: 2000
Pages: 194
Authors: Thomas Eck

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net