Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Wininet. Get Date/Time of File on FTp Server

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
Would appreciate the code to get the Date/Time of a file on an FTP Server. (NOT a web page)

Dim pData As WIN32_FIND_DATA
hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0)
hconnect = InternetConnect(hOpen, "111.111.111.111", INTERNET_DEFAULT_FTP_PORT, "user1", "pass1", INTERNET_SERVICE_FTP,
0, 0)
hFind = FtpFindFirstFile(hconnect, "\rrr\egg.egg", pData, 0, 0)
MsgBox (hFind)
'ok to here

How do i Get the Date/Time Attributes of the File?????
ie created,lastmodified etc.....

Appreciate some help. or code.!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top