Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Deleting Unwanted Files

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting an unwanted AutoComplete entry Arlene Excel Discussion (Misc queries) 6 November 7th 06 04:23 AM
Deleting unwanted data Dono Excel Discussion (Misc queries) 2 September 29th 06 01:43 PM
Deleting unwanted colums on a worksheet fraugfreak Excel Worksheet Functions 3 April 10th 06 06:34 PM
Deleting unwanted and empty rows... Jim Excel Discussion (Misc queries) 2 July 4th 05 11:12 PM
Deleting unwanted Cells tranetp Excel Discussion (Misc queries) 3 June 21st 05 03:29 AM


All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"