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

Simple File Routines Overwrite

Status
Not open for further replies.

SuperDuperNuker

Technical User
Apr 3, 2006
6
US
I need a query that automatically (without confirmation) copies FileA to a location where FileA already exists automatically overwriting the file that is there and without making a backup of it.
 
how does a query, copy a file??
anyhow, try FileCopy()
 
sorry, not a query.... a function or sub (VBA) that performs a copy from one location to another overwriting a file with the same name, without confirmation. Thanks....
 
strFile = "C:\Documents And Settings\...\DBase.mdb"
strCopiedFile = "C:\Documents And Settings\..\Desktop\DBaseII.mdb"

FileCopy(strFile,strCopiedFile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top