Programming with FTP OLE Automation
SendDirectory method
Syntax Object.SendDirectory LocalDirectory, RemoteDirectory [,TransferType] [,IfFileExists]
Copies all files in the specified local folder to the FTP server. The files are copied to a subdirectory of the current server directory that has the same name as the final folder in the local path. For example this command copies all the files in the local folder "c:\apples\oranges" to a server directory named "oranges."
.SendDirectory "c:\apples\oranges", ""
If no such directory exists on the server, it is created.
LocalDirectory Argument type: String
Required
Specifies a local folder to be copied to the FTP server.
RemoteDirectory Argument type: String
required
This argument is no longer supported. The server location is determined by the current server directory, and the final folder in the local path. Use an empty string.
TransferType Argument type: Enumeration
Optional
Specifies what type of file is being transferred. If no value is specified, the client uses the value from the current settings file. The possible values are rcAscii, rcBinary, rcTenex, and rcSmart.
IfFileExists Argument type: Enumeration
Optional
Specifies what to do if the sent file already exists on the PC. If no value is specified, the client uses the value from the current settings file. The possible values are rcAskUser, rcOverwrite, rcCancel, rcSkip, and rcUpdate.
lcpdir