🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #269

Re: File - date modified

#269
From: Bob Gonder
Date: Sun, 09 Mar 2008 22:15
15 lines
1421 bytes
bar wrote:

>I have a file over internet at http://something.com/~web/test.gif
>
>Is there any way to get the file's "Modified Date" information.

	HANDLE	f,ff,ft;
	WIN32_FIND_DATA FindFrom;
	WIN32_FIND_DATA FindTo;

	ff = FtpFindFirstFile( hFTPSession, from, &FindFrom, INTERNET_FLAG_RELOAD, NULL );
	ft = FindFirstFile( orig, &FindTo );
	cft = CompareFileTime( &FindFrom.ftLastWriteTime, &FindTo.ftLastWriteTime );

If you would rather use Indy instead of Win32, there is a similar function there.
Technical Details
Message-ID: <53o8t3pqpi7iajtd6j3v2o0isqccsp518d@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47d45bae@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e83245648618cfb4
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: File - date modified
Date: Sun, 09 Mar 2008 15:15:21 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <53o8t3pqpi7iajtd6j3v2o0isqccsp518d@4ax.com>
References: <47d45bae@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.174
X-Trace: newsgroups.borland.com 1205100916 67.77.147.174 (9 Mar 2008 15:15:16 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail