How can I preserve the date and time information when I move files to another disk drive?
I would like to preserve the last modified date and time, and also the creation date and time. I want to basically preserve as much as I can about that file, without altering it in any way.
I have come across discussions about the robocopy command. But this seem to work only when you copy whole directory trees, together with the files. So what if I only want to copy 1 single file? Are there any other alternatives?
As a side note, I am not looking for a way to copy the file, I would like to move it, not copy it. But perhaps that can be arranged by simply copying it first and then deleting the original source file. But it may not work in the same command, so it would have to be a two step process.
One workaround that I have come across is to archive the original file into a ZIP file, move it to the destination, extract it from ZIP. Then remove the ZIP file and the source file. But this seems very tedious work and time consuming, especially when dealing with large files. Of course you don't have to wait for compressing the file, you can just archive it in a ZIP file without compression. But it's still tedious.