All,
I have written a program to recursively search files in directories of a drive to look for some text (As the Microsoft search is shite!) within the file.
You enter a drive letter, then a string to search for. The program then scans the directory(s) and opens the files within. At this point it will do an InStr() to look for my stirng I have entered.
It works very very well and is very fast! However I have a problem when I hit files that cannot be opened for whatever reason...
I have used the 'ReadOnly' command to try and identify any files that cannot be opened but this does not work...
Any ideas? Basically it crashes when it hits a file it cannot open which is annoying. I have had to tell it to avoid certain files so I can run my search for my current query, however this is going to stop me from doing any other search where I will hit files that cannot be opened.
Cheers in advance.
Code:Spoiler:
Social Networking Bookmarks