Results 1 to 2 of 2

Thread: [2.0] Searching for spacific file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    89

    [2.0] Searching for spacific file

    Hi All,

    I think this is complecated question but I will ask for your help.
    I would like to search a spacific file in folders. for exmaple:

    Base Folder: XXX
    XXX
    XXX/PPP
    XXX/PPP/LLL
    XXX/SSS
    XXX/ZZZ/AAA

    let say the file is "Myfile.txt".

    I would like to search in all the folders and sub folders for this file and it can be found few times in those folders.

    Please, How can I do that?

    Thanks
    VBDC

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Searching for spacific file

    IO.Directory.GetFiles

    The method is overloaded and allows you to specify whether to search just the folder or subfolders too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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