FTP - Get File Date from FTP Site 
Author Message
 FTP - Get File Date from FTP Site

Hello all.  I was using the INet control to check to see if a certain
file existed in a certain directory on an FTP site.  But, now I've
realized that I need to see the modified date that is attached to that
file.  I'm not sure how to get it using the INet control.  I've used
the DIR command which just brings back the file name.  I realize that
I could just get the file, save it somewhere and use FSO to check the
date, but I really don't want to have to pull the file back if I don't
have to.  Is there a way to do this with INet?

Thanks,
Jennifer



Wed, 25 Aug 2004 02:52:11 GMT  
 FTP - Get File Date from FTP Site
I don't think there is a way to get the file date with the Inet transfer
control.  You'd have to use the FtpFindFirstFile() API call which returns
the file creation/access/write times (in a WIN32_FIND_DATA type structure.)


Quote:
> Hello all.  I was using the INet control to check to see if a certain
> file existed in a certain directory on an FTP site.  But, now I've
> realized that I need to see the modified date that is attached to that
> file.  I'm not sure how to get it using the INet control.  I've used
> the DIR command which just brings back the file name.  I realize that
> I could just get the file, save it somewhere and use FSO to check the
> date, but I really don't want to have to pull the file back if I don't
> have to.  Is there a way to do this with INet?

> Thanks,
> Jennifer



Wed, 25 Aug 2004 05:12:37 GMT  
 FTP - Get File Date from FTP Site
Thanks!
Quote:

> I don't think there is a way to get the file date with the Inet transfer
> control.  You'd have to use the FtpFindFirstFile() API call which returns
> the file creation/access/write times (in a WIN32_FIND_DATA type structure.)



> > Hello all.  I was using the INet control to check to see if a certain
> > file existed in a certain directory on an FTP site.  But, now I've
> > realized that I need to see the modified date that is attached to that
> > file.  I'm not sure how to get it using the INet control.  I've used
> > the DIR command which just brings back the file name.  I realize that
> > I could just get the file, save it somewhere and use FSO to check the
> > date, but I really don't want to have to pull the file back if I don't
> > have to.  Is there a way to do this with INet?

> > Thanks,
> > Jennifer



Wed, 25 Aug 2004 13:45:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. getting file from ftp-site

2. File size and date from ftp site

3. Getting File Date/Time via FTP

4. WinInet FTP Getting file creation date !!!!

5. Internet Transfer Control - Cannot FTP to Intranet FTP sites

6. Getting Extended Attributes From An Ftp Site...

7. FTP - determining if incoming FTP file is loaded before FTPing it out

8. How To FTP a File To FTP Server

9. send data file to FTP site

10. How to get a file from an FTP site requiring UserId and Password

11. How to upload file to ftp site

12. ftp sites for retrieving VBX files

 

 
Powered by phpBB® Forum Software