The vbld_CreateVirtualDir system script function is hard-coded to use the default web site (the "1" in the string "IIS://LocalHost/w3svc/1/Root"). You could copy and paste this function, rename it, and specify the name of the desired web site instead of 1 (optionally passing it in as a parameter as well).
|