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.
Printable View
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.
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.
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.
I'm using VB6
OK, managed to dump the results to a file and can now read it.
Thanks for at least replying.