|
This online help file is for EFT Server version 6.2.x. For other versions of EFT Server, please refer to http://help.globalscape.com/help/index.html. (If the Index and Contents are hidden, click Show Contents pane in the top left corner of this topic.) |
Use the ICISites interface AddLocalSite method to create a new unauthenticated Site and retrieve the Site's ICISite interface.
Signature:
HRESULT AddLocalSite(
[in] BSTR bstrName, //Name
[in] BSTR bstrRootFolder, //Root folder
[in] BSTR bstrFilePath, //User database (AUD file) path
[in] int nIP, //Listening IP
[in] long nPort, //FTP port
[in] VARIANT_BOOL bCreateHomeFolder,// Create home folders
// for newly-added users?
[in] VARIANT_BOOL bPermHomeFolder, //Give newly-added users full
//permission for their
//home folders?
[in] VARIANT_BOOL bAutoStart, //Start site
//immediately after creation?
[in] VARIANT_BOOL bCreateFTPFolders, //Create standard FTP folders
//(Usr, Bin, Incoming, Pub)?
[out, retval] ICISite** prop); //New site
Example:
Set Site = Sites.AddLocalSite("Local Site", "C:\sites\Local",_
"C:\sites\Local.aud", 0, 21, True, True, True, True)
Parameters |
Definition |
bstrName |
New site name |
bstrRootFolder |
Site root folder |
bstrFilePath |
Path to the file that will contain user datal |
nIP |
Index of the site IP address |
nPort |
Port number of the site |
bCreateHomeFolder |
TRUE means that a home folder for new site users should be created |
bPermHomeFolder |
TRUE means that new site users should be granted full permissions in their home folders |
bAutoStart |
TRUE means that the site should start automatically |
bCreateFTPFolders |
TRUE means to create standard FTP folders (Usr, Bin, Incoming, Pub) (v6.1 and later) |