Microsoft Dynamics NAV: FTPWebRequest Methods String Values

I had previously posted on using dotNET Interop to FTP a file to a remote server. In the code the command is specified in the line: FtpWebRequest.Method := ‘STOR’;  The other methods available are:

‘APPE’  AppendFile
‘DELE’  DeleteFile
‘RETR’  DownloadFile
‘MDTM’  GetDateTimestamp
‘SIZE’  GetFileSize
‘NLIST’ ListDirectory
‘LIST’  ListDirectoryDetails
‘MKD’   MakeDirectory
‘PWD’   PrintWorkingDirectory
‘RMD’   RemoveDirectory
‘RENAME’ Rename
‘STOR’  UploadFile
‘STOU’  UploadFileWithUniqueName 

 

Leave a Comment