how to delete files in a directory

  • Thread starter Luká¹ Cyrankowski
  • Start date
L

Luká¹ Cyrankowski

hallo, my friends,

does anybody know how to delete all files in a concrete directory on a disc
from VBA code?

p.e. in C:\reports - there are already files "....TXT" and at the start of
the VBA I need to have this directory empty.

thanx a lot, Lukas.
 
J

Jean-Guy Marcil

Luká¹ Cyrankowski was telling us:
Luká¹ Cyrankowski nous racontait que :
hallo, my friends,

does anybody know how to delete all files in a concrete directory on
a disc from VBA code?

p.e. in C:\reports - there are already files "....TXT" and at the
start of the VBA I need to have this directory empty.

thanx a lot, Lukas.

Look up the "Kill" command in the VBA help.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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