Results 1 to 5 of 5

Thread: Search drives and store result

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    52

    Search drives and store result

    Hi guys, am quite new to VB and just after a guiding hand.

    I'm trying to create a program which will search all drives on a PC for a particular file extension (*.bak) and then store the result in a TXT file.

    Any help would be much appreciated.

  2. #2

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    52

    Re: Search drives and store result

    OK, I managed to work out a way to scan the drives and dump the result into a txt file. The file contains the path of all the *.bak files but now I don't know how to get VB to read the file and delete the files.

    I'll keep reading and trying stuff but some help would be great.

  3. #3
    Addicted Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    169

    Re: Search drives and store result

    are you using VB6 or VB.net?
    in VB6 you have to open files and read them in as strings but in .net you can create a fileinfo object which makes it easier to read and manipulate files.
    If you're going to be crazy, you have to get paid for it or else you're going to be locked up. -- Hunter Thompson

  4. #4

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    52

    Re: Search drives and store result

    I'm using VB6

  5. #5

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    52

    Re: Search drives and store result

    OK, managed to dump the results to a file and can now read it.

    Thanks for at least replying.

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