Delete Files from Word Macro

M

Mike McNeill

Hi All -
How do you set up a (Windows) command to delete 1 or more files in a
specific directory from within a Word Macro?
I suspect it is a separate Library function, but don't kmow the details

Thanks in advance
Mike
 
J

Jay Freedman

Hi All -
How do you set up a (Windows) command to delete 1 or more files in a
specific directory from within a Word Macro?
I suspect it is a separate Library function, but don't kmow the details

Thanks in advance
Mike

Look in the help for the Kill function.
 
H

Helmut Weber

Hi Mike,

handle with care:

kill "C:\Mydocs\*.*"


Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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