I'm looking for a short bit of sample code which uses the System.Net.FtpWebRequest namespace to get the timestamp of a specified remote file on an ftp server. I know I need to set the Method property of my request object to WebRequestMethods.Ftp.GetDateTimestamp but I'm not sure how to get the response back into a System.DateTime object.
标签:
ftpwebrequest
相关问题
- Why does FtpWebRequest return an empty stream for
- Escape the @ character in my PowerShell FTP script
- Download multiple files over FTP using one connect
- Visual Basic FtpWebRequest downloading files?
- C# FTP Directory create and upload is causing form
相关文章
- Downloading multiple files from FTP server
- Upload a file with FTP in C# : The format of the U
- FtpWebRequest Connecting to an AS/400
- FtpWebrequest - filename contains german “Umlaute”
- FtpWebRequest Download File Incorrect Size
- Upload a streamable in-memory document (.docx) to
- C# - FtpWebRequest - Multiple requests over the sa
- The ftpes:// URI prefix is not recognized by FtpWe
Something like this:
To get the date field only but not the time, do exactly as the first answer in this thread with the following exception:
Yep - thats pretty much what I ended up with. I went with something like this