Programming with FTP OLE Automation

image\rwnprg32.gif Export method

 

Syntax Object.Export FileName [,XML] [,Sites] [,AppSettings] [,Personal]

 

Description

Saves your Reflection FTP Client settings to the specified settings file.

If you specify only a file name and path, as shown in the first example, Export creates an XML file that includes your site connection settings and application configuration information, but does not include personal settings.

Object.Export "c:\Mypath\Myfile.xml"

This command includes all settings, including personal settings, in the saved file:

Object.Export "c:\Mypath\Myfile.xml", , , ,True

Arguments

FileName Argument type: String
Required
Specifies the name and path of an FTP Client settings file.

XML Argument Type: Boolean
Optional
When this argument is True (the default value), settings are exported in XML format. (You must save settings in this format if you want to import the settings using the Import method.) When this argument is False, settings are exported in registry format.

Sites Argument Type: Boolean
Optional
When this value is True (the default value), site configurations are included in the settings file. When it is False, sites are not included.

AppSettings Argument Type: Boolean
Optional
When this value is True (the default value), setting information for configuring the FTP Client application is included in the settings file. When it is False, this information is not included.

Personal Argument Type: Boolean
Optional
When this value is True, setting information specific to the user and/or PC are included in the settings file. When it is False (the default value), this information is not included.