luke2012 Well-Known Member Licensed User Longtime User Nov 12, 2012 #1 Hi to all, I have to copy a file from a dir to other dir replacing the destination file: This is my case: - Source (/SdCard/file.db) - Target (/SdCard/Android/Data/<folder_app>/Files/file.db To do this can I use File.copy & File.Delete ? I mean: 1) delete the file in the target dir 2) Copy the file from source dir to target dir Is the right way or there is a command that execute the two operations in the same time ?
Hi to all, I have to copy a file from a dir to other dir replacing the destination file: This is my case: - Source (/SdCard/file.db) - Target (/SdCard/Android/Data/<folder_app>/Files/file.db To do this can I use File.copy & File.Delete ? I mean: 1) delete the file in the target dir 2) Copy the file from source dir to target dir Is the right way or there is a command that execute the two operations in the same time ?
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2012 #2 You can just use File.Copy. It will overwrite the existing file. Upvote 0