View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Deleting Unwanted Files

Make a new (dummy) directory (lets refer to this as "new directory")
copy all the files to new directory
clear the original directory
Move back using your list
remove the new directory

--
Regards,
Tom Ogilvy


"TEB2" wrote in message
...
I have a list of file names that I want to keep. The directory has 3119
files total.

How do I loop thru the directory and kill the files not in my list?