how to backup anything from access

shadowmaster

Registered User.
Local time
Today, 10:58
Joined
May 11, 2010
Messages
10
hi.
lets say that u have a folder contain photos or songs or what ever. and this folder is located in ur hard drive. now can u make a back up copy for this folder from access? i mean run an access form that contain code to back up this folder to another location

thanks
 
You could but why would you want to do that when you can just copy paste it elsewhere?
 
Shadowmaster,

You can use code like this...

Code:
   Dim FileName As String
   FileName = Dir("C:\YourSourceFolder\")
   Do Until Len(FileName) = 0
      FileCopy "C:\YourSourceFolder\" & FileName, "C:\YourDestinationFolder\" & FileName
      FileName = Dir
   Loop
 

Users who are viewing this thread

Back
Top Bottom