You can use the IIsFtpVirtualDir object to set metabase properties that apply to one or all FTP virtual directories for an FTP server. If you use this object at the server's root virtual directory (for example, .../MSFTPSVC/2/ROOT), inheritable property values will apply to all FTP virtual subdirectories of the root virtual directory of the second FTP server. You can set properties for a specific FTP virtual directory by using the IIsFtpVirtualDir object for a specific virtual directory (for example, .../MSFTPSVC/2/ROOT/AVDir).
The IIsFtpVirtualDir object is an ADSI container object.
For the server's root virtual directory,
where MachineName can be any name or "LocalHost."
For a specific virtual directory,
where MachineName can be any name or "LocalHost."
varReturn = object.Method
IIsFtpVirtualDir
ADSI Object Properties |
AccessFlags | IPSecurity |
AccessRead | Path |
AccessWrite | UNCPassword |
DontLog | UNCUserName |
FtpDirBrowseShowLongDate |
ADSI Object Methods | Standard methods for ADSI objects |
ADSI Container Object Methods | Standard methods for ADSI container objects |