CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2011
    Posts
    15

    Question How to display the files in a specific folder?

    I'm trying to make a little disk cleaner program and I couldn't figure out how to display the results of scanned directory on list view tool on windows form application. I have a 3 columns and these are File Name, Folder Path and File Size. I want the program to scan for example this location: C:\Users\Emre\AppData\Local\CrashDumps and display all of the files in that location on the list view tool. How could i do this? And how do display the file size and file location on the next 2 colomns and these other two colomns are sub items.

    Thank you!

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to display the files in a specific folder?

    If you're using Windows Forms, you need to ask in a .Net forum.

    If you're using MFC, look at CFileFind and CFile::GetStatus();

  3. #3
    Join Date
    Jan 2011
    Posts
    15

    Re: How to display the files in a specific folder?

    yes, I'm using Windows forms. Thanks for the advice.

  4. #4
    Join Date
    Jan 2011
    Posts
    15

    Question Re: How to display the files in a specific folder?

    can you give the link to .net forum. isn't there .net part in code guru?

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to display the files in a specific folder?


Tags for this Thread

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