I have a directory with 26,500 files in it.
I need to parse each of these files and rename them.
To rename them I need to compare some parts of each file name to a look up table, take a value from the look up table and combine it with another part of the file name for the new file name.
Normally I would simply do the below:
Expand|Select|Wrap|Line Numbers
- Dim files() As String = Directory.GetFiles(“mydrectory”)
But with 26,500 files this does not seem to be an available option.
I would instead like to do my loop based on “one file at a time” from the directory but have no idea how to get only one file name at a time, preferably the top most filename.
Any help would be great.
Thanks