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)



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top