Deleting Files from a folder using access vba

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maxdog
    New Member
    • Mar 2015
    • 1

    Deleting Files from a folder using access vba

    I have a file that i copy to a backup directory after completing a task in Access 2010. I need to know how to delete the files in this folder after I perform my filecopy.

    fs.copyfolder "c:\temp", "\\mchapp01\mrr eporting\clilni cal values team\Charge Interface\Facil ity Only\Temp2", True

    I want to delete all the files in C:\Temp after this copy command
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32661

    #2
    The Kill PathName statement deletes files and can take wildcard characters in the parameter.

    Comment

    Working...