Kill statement

  • Thread starter Thread starter Tim
  • Start date Start date
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.
 
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.
 
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)



.
 
Back
Top