This sample demonstrates how you create virtual directories using the Admin Base Object.
This sample is available in the ...\admin\abo_vdir subdirectory of the IIS samples directory.