Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:53:00+00:00 2026-05-24T01:53:00+00:00

I am writing an application that would download and replace a pdf file only

  • 0

I am writing an application that would download and replace a pdf file only if the timestamp is newer than that of the already existing one …

I know its possible to read the time stamp of a file on a local computer via the code line below,

MessageBox.Show(File.GetCreationTime("C:\\test.pdf").ToString());

is it possible to read the timestamp of a file that is online without downloading it .. ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:53:02+00:00Added an answer on May 24, 2026 at 1:53 am

    Unless the directory containing the file on the site is configured to show raw file listings there’s no way to get a timestamp for a file via HTTP. Even with raw listings you’d need to parse the HTML yourself to get at the timestamp.

    If you had FTP access to the files then you could do this. If just using the basic FTP capabilities built into the .NET Framework you’d still need to parse the directory listing to get at the date. However there are third party FTP libraries that fill in the gaps such as editFTPnet where you get a FTPFile class.

    Updated:

    Per comment:

    If I were to set up a simple html file with the dates and filenames
    written manually , I could simply read that to find out which files
    have actually been updated and download just the required files . is
    that a feasible solution ..

    That would be one approach, or if you have scripting available (ASP.NET, ASP, PHP, Perl, etc) then you could automate this and have the script get the timestamp of the files(s) and render them for you. Or you could write a very simple web service that returns a JSON or XML blob containing the timestamps for the files which would be less hassle to parse than some HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Facebook application that would use a Postgres DB along with
I'm writing a Python+Qt4 application that would ideally need to pop up a window
I was wondering, how would you go about writing an application that basically houses
I was writing a console application that would try to guess a number by
I've been writing a little application that will let people upload & download files
All! I'm writing an application that would run on Google App Engine. I'm using
I'm writing an Android application that would like to verify that a string produced
I am developing an application that is writing data to a file. Lets assume
So I'm writing an application that would allow a user to create a type
im writing an application that downloads and installs addons for programs which needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.