|
-
May 5th, 2008, 10:35 PM
#1
Thread Starter
Member
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.
-
May 6th, 2008, 06:26 AM
#2
Thread Starter
Member
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.
-
May 6th, 2008, 08:18 AM
#3
Addicted Member
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
-
May 6th, 2008, 04:43 PM
#4
Thread Starter
Member
Re: Search drives and store result
-
May 6th, 2008, 11:30 PM
#5
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|