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
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top