View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default Is there a way to kill all files in a folder?

Use this but be careful to get the path correct or you could have a very bad
day.

Sub Button1_Click()
Kill "c:\yourdirectory\*.*"
End Sub


Mike


"wbntravis" wrote:

i do not want to kill the subdirectory or folder. ( It is an IE cache file
and I just want to go in and clean up what is in the cache.)
The folder, I want to leave alone....


Thanks in advance.
wbnTravis Oklahoma