Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify / Delete files via VBA

Status
Not open for further replies.

BanditLV

Programmer
Oct 17, 2000
50
US
Is there a way to delete / rename files through VBA? For instance, I have a file C:\Progra~1\RPS\harbour.dbf that I want to delete because I'm getting ready to overwrite it utilizing another program within Access - each time I use the program, it adds another file called harbour1.dbf or harbour2.dbf and so on... This is basically to maintain system integrity and illiminate garbage files...

All help would be extremely appreciated...
 
Look up the 'Kill' function for deleting files. Durkin
 
Also, look up the Name statement to rename files:

Name oldpath As newpath
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top