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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to copy the existing application and give it a different name 1

Status
Not open for further replies.

SkyHigh

Technical User
May 30, 2002
309
CA
Hi Folks
I have an application that gets new data at the end of every month, what I want to do is to first call some routines to copy the application with a new name ( in other words back it up ) before getting the new data.

Can someone please give me some ideas as to how I can do it.

Thanks so much for your help.
Brenda
 
Hi !

how about this:

Code:
Function copyfile()
Set fs = CreateObject("Scripting.FileSystemObject")
fs.copyfile "C:\somefolder\sourcefile.mdb", "c:\somefolder\targetfile.mdb"
End Function

HTH,
fly

fly

Martin Serra Jr.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top