I am trying to copy a file from one directory to another to try to make a Patch to fix errors in a program that I wrote. What would the propper coding be to copy from say "C:\test.txt" to "D:\test.txt" and have it automatically overwrite the old file.
