Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retreive Createion and Modification time for Remote file

Retreive Createion and Modification time for Remote file

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chetanjoshi9
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • C chetanjoshi9

      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

      P Offline
      P Offline
      Peter Weyzen
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups