Is there a way to kill all files in a folder?
Thanks all of you!
I did the folder and dos wildcard thing and it did not work for me
BEFORE I asked the question. Because it did not work... I asked
the question.
You all gave me great food for thought though-
which I will continue to study thanks.
--
wbnTravis, from Oklahoma
"Tom Ogilvy" wrote:
Just to add a little info to Mikes caution: files deleted with Kill are not
placed in the recycle bin. They are just deleted.
--
Regards,
Tom Ogilvy
"Mike" wrote:
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
|