View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
David Johnston[_2_] David Johnston[_2_] is offline
external usenet poster
 
Posts: 3
Default Delete all files except...

I would like to make a little button that, wehn pressed, would delete
all files in a directory except for the ones that I specidy. It would
be nice if I could display a listbox and check the ones that I wanted
to delete but for now, I can just hardcode the files to keep. I can
populate the listbox but can't figure out how to delete the ones not
selected.

Anyone have any ideas on how to do this?
Thanks in advance,
David