A Virtual Directory is a name not a physical location. The physical location
of your Virtual Directory can be anywhere on your hard drive. So the
physical location of your Virtual Directory isn't always
c:\inetpub\wwwroot\virtualdirectoryname
If you need to know the physical directories of all your IIS Virtual
Directories, look at the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\W 3SVC\Parameters\Virtual
Roots
"david" <da***@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
I basically use the following code to display the directory and file names
in
the WWWROOT, but can not show the virtual directory.
----
Dim path As String = Server.MapPath(x)
Dim di As DirectoryInfo = New DirectoryInfo(path)
Listing.DataSource = di.GetFileSystemInfos()
Listing.DataBind()
----
Anyone can help me about how to list the virtual directory.
Thanks
David