I've got it working, mostly. Occasionally, especially in debug mode, the Copy2 function when copying an SQLite database, only copies part of it, rendering it unable to be opened. Other tests on text files, XML files, Json files, etc. seem to be working fine. Could be related to the size, the SQLite database is 2.4 MB.