I am assuming that you are a little bit familiar with VB.
here is the code, it assumes that the memory stick is already attached to
the computer, also you can delete the btncode= lines if you do not want the
message boxess to pop up.
Copy and paste the code into NOTEPAD. save the file with the extension .VBS
For example:
BACKUP.VBS, save the file as type: All Files Do not save it as a text file!
If you need help you can post an e-mail where i can send you an attachement.
good luck
Option Explicit
On Error Resume Next
'*
'*
'* This script backs up files to a memory stick
'*
'* Replace the text FolderName with the name of your folder
'* Replace the text AccessFileName with your file name make sure to type
'* the extension .mdb
'* repeat the objFS.copyfile line for each file to be copied
'*
'----------------------------------------------------------------------------
' Instantiate the script objects
'----------------------------------------------------------------------------
Dim objFS : Set objFS = Wscript.CreateObject("Scripting.FileSystemObject")
Dim WSHShell : Set WSHShell = Wscript.CreateObject("Wscript.Shell")
Dim objFolder, BtnCode
'----------------------------------------------------------------------------
' Copy file(s)
'----------------------------------------------------------------------------
btnCode = wshShell.Popup("Please wait...Updating your files...", 2,
"Copying...", 64)
objFS.Copyfile "C:\FolderName\AccessFileName.mdb",
"E:\FolderName\AccessFileName.mdb"
btnCode = wshShell.Popup("Please wait...Updating your files...", 2,
"Copying...", 64)
btnCode = wshShell.Popup("Your file(s) have been updated. Close this
window now...", 0, "ALL DONE!", 64)
'----------------------------------------------------------------------------
' Release objects from memory and terminate execution
'----------------------------------------------------------------------------
Set objFS = Nothing
Set WSHShell = nothing
Set objFolder = nothing
WScript.Quit