I think there's some misunderstanding of the question here. My understanding of the original request is to make a copy of the BE database file that contains the Master Table. Thus copying a file.
fso.CopyFile
is a valid answer to how one could do that but the real question also includes why does the
FileCopy
statement not work in some circumstances. Clearly they've fallen over when trying to make a backup copy of the database so, as well as pointing at a way that can be done without using
FileCopy
(CMD.Exe / COPY / Shell), I also explained what they could do to ensure the FE doesn't interfere with the backup if they were intent on using
FileCopy
.
Your suggestion to use
fso.CopyFile
as an alternative probably makes more sense to most people than the (CMD.Exe / COPY / Shell) one. All ideas that can add to the general understanding are valuable.
PS. It was really good to see you in Teams earlier getting set up & ready for the
Access DevCon 2021 on Thursday.
PPS. I so hate it when I lose work after a token expires. My sympathies.