I am having problem with the below code. I have a folder containing xls files and a list of files. Files are names like FTF_8_998.xls and the list has entries like 8_998, so i need to match the (8_998 with FTF_8_998. I use the code to sort the files in different folders basis a list. Now the problem comes when a file is not found as per the list. For example i have a file FTF_9_1.xls, and the list does not contain 9_1. So when i run the code it is stuck in an infinite loop.
Requirement: Either the non existing file is moved to another folder.... or it stays there and the code moves on.
Please Login or Register to view this content.
Bookmarks