Retreive Createion and Modification time for Remote file
-
I have writen code as BOOL bResult = fileFind.FindFile(strFilePath); if(bResult) { bResult = fileFind.FindNextFile(); CTime createTime; CTime modTime; fileFind.GetCreationTime(createTime); fileFind.GetLastWriteTime(modTime); CString strCreateTime = createTime.Format("%H:%M:%S, %A, %B, %d, %Y"); CString strModifyTime = modTime.Format("%H:%M:%S, %A, %B, %d, %Y"); } but I am getting wrong values as Thursday, January, 01, 1970 Please help me to solve this problem
-
I have writen code as BOOL bResult = fileFind.FindFile(strFilePath); if(bResult) { bResult = fileFind.FindNextFile(); CTime createTime; CTime modTime; fileFind.GetCreationTime(createTime); fileFind.GetLastWriteTime(modTime); CString strCreateTime = createTime.Format("%H:%M:%S, %A, %B, %d, %Y"); CString strModifyTime = modTime.Format("%H:%M:%S, %A, %B, %d, %Y"); } but I am getting wrong values as Thursday, January, 01, 1970 Please help me to solve this problem
It sounds like you're unable to even get these values. I bet the CTime int values is 0. What exactly do you mean by "remote files"?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)