New
#1
Insufficient Memory Errors running Batch file
I have a batch file that . . .
1. reads a txt file that contains a list of filename prefixes.
2. drills down thru a folder tree looking for filesnames beginning with each of those prefixes.
3. copies (XCOPY) each matching file into a new folder tree (with matching subfolder structure).
It usually works great, but when searching a large tree of data with many subfolders, sub-subfolders and many files I get "insufficient memory" errors. I don't really understand what that means except that memory has not been "released". I get several of these errors.
I don't know if processing in OK to a certain point within the list of prefixes, and stops working (for the rest of the list) whenever an "insufficient memory" error occurs. Nor do I know the prefixes on which the errors occur.
Is there a way to prevent or recover from this problem? I assume it is related to the characteristics of the tree being searched.