Copy File and Rename it

infinitx

Registered User.
Local time
Today, 14:51
Joined
Mar 22, 2004
Messages
63
Hi,


BACKGROUND

I have a back-end database (database_be.mdb) in a folder (C:\Access).


GOAL

I want the user to be able to enter the name of the new back-end that they want to create. Then, when the user clicks a button, the program will create a copy of "database_be.mdb" but change the filename of it to the name specified by the user. So if the user typed in "Calculus" in the textbox, then the copied database' filename would be "Calculus_be.mdb."


Can this be done?


Thank you very much
 
You can use FileCopy to copy the file. You should be able to grab the user's input and use it in the code to name the copy whatever you want.
 

Users who are viewing this thread

Back
Top Bottom