Kill statement

T

Tim

Hi all,

I need some code to kill(delete) all .txt file within the
directory. Does anyone know how to do it?

Any help will be appreciate.

Thanks.

Tim.
 
D

Dirk Goldgar

Tim said:
Hi all,

I need some code to kill(delete) all .txt file within the
directory. Does anyone know how to do it?

Any help will be appreciate.

Did you actually try the Kill statement? For example:

Kill "C:\Temp\*.txt"

to delete all .txt files in C:\Temp.
 
T

Tim

Dirk,

Thanks.

Tim.
-----Original Message-----


Did you actually try the Kill statement? For example:

Kill "C:\Temp\*.txt"

to delete all .txt files in C:\Temp.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(remove NOSPAM from address if replying by email)



.
 
Top