Results 1 to 5 of 5

Thread: [RESOLVED] File Last Modified Time?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2008
    Location
    >> ( ҉ )
    Posts
    413

    Resolved [RESOLVED] File Last Modified Time?

    How do i can make application check Last Modified time from file via FTP.

    And check out which is your folder's last modified time.

    If FTP File Modified Time is latest than your file's folder then WC.DownloadFile(FilePath/File)

    Thanks.

    Cutted of: Check last modified time is not later than FTP file then download and overwrite exist.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: File Last Modified Time?

    Code:
    Dim file As New System.IO.FileInfo("Filenamewithpath")
            file.LastWriteTime
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: File Last Modified Time?

    The IO.FileInfo Structure, among the others, contains the following members:
    • LastWriteTime
    • LastWriteTimeUtc

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2008
    Location
    >> ( ҉ )
    Posts
    413

    Re: File Last Modified Time?

    Thank you.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [RESOLVED] File Last Modified Time?

    I don't believe you can actually obtain that information via FTP with a FileInfo object. That would require the file to be available on the local file system.

    You will likely need to send FTP commands to the FTP server which will return this information and you will need to parse it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width