Print Page | Close Window

Automated Backup

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8671
Printed Date: 29 March 2026 at 6:51pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Automated Backup
Posted By: ziwez0
Subject: Automated Backup
Date Posted: 08 January 2004 at 4:47am

Anyone know/got a piece of code that can copy a access database?

I have a database which i need to backup and store in a different dir

cheers

 

-

David



-------------
If anything takes long to do its worth doing.



Replies:
Posted By: michael
Date Posted: 08 January 2004 at 9:26am
<%
  Dim objFSO, objFile
  Dim strdb
  strdb ="dbname.mdb"  
  Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
  Set objFile = objFSO.GetFile(Server.MapPath("\" & strdb))
  Call objFile.Copy(Server.MapPath("\backupdir\" & strdb))
  Set objFile = Nothing
  Set objFSO = Nothing
%>

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net