Kill "C:\test1\*.txt"
These don't go to the recycle bin, so make sure you know what you want to
delete.
--
Regards,
Tom Ogilvy
"jt46" wrote in message
...
Does anyone knows how to write a simple code to delete a file or files
by their file extension? Thanks in advance.
John
--
jt46
------------------------------------------------------------------------
jt46's Profile:
http://www.excelforum.com/member.php...o&userid=15154
View this thread: http://www.excelforum.com/showthread...hreadid=268917