CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: date of a file

  1. #1
    Guest

    date of a file

    Good day !
    How can i find out the date of file ?
    thanks,



  2. #2
    Guest

    Re: date of a file

    Hi, you can try somthing like that example.

    [...]

    WIN32_FIND_DATA dataFindFile;

    FindFirstFile("MyFile.my",&dataFindFile);

    CTime time(dataFindFile.ftCreationTime);

    [...]

    Regards,
    Wladi.


  3. #3
    Join Date
    May 1999
    Posts
    40

    Re: date of a file

    try

    CFile::GetStatus

    hope this help


  4. #4
    Join Date
    Apr 1999
    Location
    New delhi
    Posts
    3

    Re: date of a file

    FileDateTime
    This method returns a Variant (Date) that indicates the date and time when a file was created or last modified.

    Syntax
    filesystem.FileDateTime (Pathname)

    Argument
    pathname
    The required pathname argument is a string expression that specifies a file name. The pathname may include the directory or folder.

    Hope this will help..It is without MFC, otherwise try CFile::GetStatus .


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured