I am trying to write a program that backs up a database from the c drive to the a drive. I want to use a command like the xcopy dos command.
Such as copy c:\database to a:\database
Thanks
BJ
Printable View
I am trying to write a program that backs up a database from the c drive to the a drive. I want to use a command like the xcopy dos command.
Such as copy c:\database to a:\database
Thanks
BJ
filecopy "c:\myfile.txt","a:\myfile.txt"
From the help
FileCopy Statement
Copies a file.
Syntax FileCopy source, destination
The FileCopy statement syntax has these named arguments:
source
String expression that specifies the name of the file to be copied. The source may include directory and drive.
destination String expression that specifies the target
filename. The destination may include directory and drive.
Remarks
If you try to use the FileCopy statement on a currently open file, an error occurs.