oFTP.PutFile()
Puts a file to FTP location
oFTP.PutFile(LocalFile, [NewRemoteFile, Flags])
Parameters
LocalFile | Existing file name |
NewRemoteFile | Remote path to the file to be created (fully qualified path or relative path to current dir) |
Flags | See remarks |
Return Value
True on successRemarks
Flags:
FTP_TRANSFER_TYPE_UNKNOWN = 0 (Defaults to FTP_TRANSFER_TYPE_BINARY)
FTP_TRANSFER_TYPE_ASCII = 1
FTP_TRANSFER_TYPE_BINARY = 2
Related
Example
oFTP.PutFile("LocalFile.ahk", "MyTestScript.ahk", 0)