Introduction - If you have any usage issues, please Google them yourself
Realize the dynamic creation of virtual directory DirectoryEntry attached sample code on a package
Packet : 97288409virtualdirectorycreation_demo.zip filelist
VirtualDirectoryCreation/
VirtualDirectoryCreation/VirtualDirectoryCreation/
VirtualDirectoryCreation/VirtualDirectoryCreation.sln
VirtualDirectoryCreation/VirtualDirectoryCreation/bin/
VirtualDirectoryCreation/VirtualDirectoryCreation/Program.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/AssemblyInfo.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/Resources.Designer.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/Resources.resx
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/Settings.Designer.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/Properties/Settings.settings
VirtualDirectoryCreation/VirtualDirectoryCreation/VDirCreation.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/VDirCreation.Designer.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/VDirCreation.resx
VirtualDirectoryCreation/VirtualDirectoryCreation/VDirLib.cs
VirtualDirectoryCreation/VirtualDirectoryCreation/VirtualDirectoryCreation.csproj