🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8229

last modification of a remote file...

#8229
From: Oren Halvani
Date: Wed, 17 Nov 2004 17:51
34 lines
1875 bytes
dear builders,

i need to check if a remote file i.e. this one:
www.halvani.de/index.php is older as a local
file..how can i get the timestamp of the remote
file...?

can i use: InternetFindNextFile( ) for this ?
or does someone have another suggestion ?

for a local file i'm using this:

/*****************************************/
void __fastcall TfrmMainUnit::Button1Click(TObject *Sender)
{
   String file = Edit1->Text; // "C:\\(Artists).php";

   WIN32_FIND_DATA data;
   HANDLE hdl = FindFirstFile(file.c_str(), &data);

   if(hdl != INVALID_HANDLE_VALUE)
   {
     SYSTEMTIME stime;
     FileTimeToSystemTime(&data.ftCreationTime, &stime);
     if(FileTimeToSystemTime(&data.ftLastWriteTime, &stime))
     {
        String dd =  stime.wDay, mm = stime.wMonth, yyyy = stime.wYear;
        ShowMessage(dd + "." + mm + "." + yyyy); // result..
     }
   }
}/*****************************************/


Oren
Technical Details
Message-ID: <419b8fdf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.visi.com!transit-1.news.visi.com!nntp5.savvis.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8f2e727662a11340,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Oren Halvani" <Spam@Me-Please.com>
From: "Oren Halvani" <Spam@Me-Please.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: last modification of a remote file...
Date: Wed, 17 Nov 2004 18:51:41 +0100
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.86.58.190
Message-ID: <419b8fdf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100713951 217.86.58.190 (17 Nov 2004 09:52:31 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.visi.com!transit-1.news.visi.com!nntp5.savvis.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail