[RESOLVED] How to display files in a multiple directory?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: [RESOLVED] How to display files in a multiple directory?

  1. #1
    Join Date
    Jan 2011
    Posts
    15

    [RESOLVED] How to display files in a multiple directory?

    I'm making a mini disk cleaner and I have wrote this code:

    listView1.Items.Clear();

    DirectoryInfo dirCustom = new DirectoryInfo("C:\\Windows\\");

    FileInfo[] filCustom;

    filCustom = dirCustom.GetFiles("*.txt");

    foreach (FileInfo filFile in filCustom)
    {

    listView1.Items.Add(filFile.Name, "test");

    }

    However there are some missing parts, works fine but i need to search multiple path and extensions and it only displays the file name on the list view on detailed view. I want it to display the folder path and file size.

  2. #2
    Join Date
    Jan 2011
    Posts
    15

    Exclamation Re: How to display files in a multiple directory?

    Problem is solved!

  3. #3
    Join Date
    Dec 2008
    Location
    Step Into(F11)
    Posts
    464

    Talking Re: [RESOLVED] How to display files in a multiple directory?

    please then don't forget to do !

    Code:
    private sub ThreadTools_Click() {
    IF ProblemSolved() {
       ThreadTools();
       MarksThreadResolved();
           }
          }

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center