I apologize for this novice question, but I am brand new to batch files. I wrote a simple "copy" batch file to copy a file to another directory. It then deletes an existing file in the destination directory, and renames the newly-copied file (giving it the name of the file which was just deleted). Essentially, I am setting up some personnel to run a backup of a database.
The problem is, this batch file works fine on PCs running Windows 98, but will not run on PCs running Windows 2000. This is the batch file:
copy G:\Source\File.mdb G:\Destination
del G:\Destination\Backup.mdb
rename G:\Destination\File.mdb Backup.mdb
It is doing the "del" step but not the copy step. Did the copy command change somehow in Windows 2000? Also, what's strange is I don't get an error message. It appears to run, but then when I check for the copied file it is not present.
Thank you very much, and sorry for being such an amateur!
The problem is, this batch file works fine on PCs running Windows 98, but will not run on PCs running Windows 2000. This is the batch file:
copy G:\Source\File.mdb G:\Destination
del G:\Destination\Backup.mdb
rename G:\Destination\File.mdb Backup.mdb
It is doing the "del" step but not the copy step. Did the copy command change somehow in Windows 2000? Also, what's strange is I don't get an error message. It appears to run, but then when I check for the copied file it is not present.
Thank you very much, and sorry for being such an amateur!