how would i go about searching a txt file for a certain string of characters. I want to move all txt files with a certain string out of 1 folder into another.
Printable View
how would i go about searching a txt file for a certain string of characters. I want to move all txt files with a certain string out of 1 folder into another.
Open the Text file in a hidden TextBox, then use the InStr function to find the string. If the string is found, then use the MoveFile API to move the file to it's new directory.
Why use a text box? why not just a string?
Apart from limiting the size of the text you can load it would slow things down.