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
Paul Page #2 / 3
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
Jennif #3 / 3
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?