C# download file and keep date






















LastWriteTime or CreationTime only has "todays" date. Is there a way I can preserve the client file create date? Creation date is a feature of the OS. I think you can use the Modified date.

The last modified date will be the date when the file was last modified. If you have not changed the file after the creation, the last modified date will remain the same. The content you requested has been removed. Ask a question. Archived Forums. Windows 7 User Interface. Sign in to vote. Having the original date on the file and folder help when doing audit tracking. Friday, February 10, PM.

There is an option in robocopy to copy those attributes. Saturday, February 11, AM. Hi, I am currently standing by for an update from you and would like to know how things are going. As far as I know, the Date modified won't change when doing a copy. Monday, February 13, AM. Thank you all for your responses. I also was told that Microsoft also has another free utility called RichCopy that can do the same thing.

Monday, February 13, PM. Hi Noel, I didn't mean to ingored your question. Let's be perfectly clear about this: You copy a folder full of files using Explorer, right? When you're done, all the files have altered modification dates? Hi Noel, You are corrected. Thank You, Alvin. Edited by gaurahari Friday, July 20, PM emphasized some words. Friday, July 20, PM. Monday, October 29, PM. Tuesday, July 2, PM. I have tried this to be working on my Windows 8: Run a command prompt as administrator, Robocopy is already included in my Windows 8 build.

Tuesday, July 14, AM. I am having a similar issue. When items are moved from desktop to SD the modified date is changing. Friday, July 15, PM. If you perform a cut paste from one folder to another on a different logical volume you will get new creation and new modified dates. Then, how can we tell Windows to preserve the timestamp on file copy? We can do it with a command line. Robocopy is a command that we use in Command prompt without any third-part software.

Please follow steps below. Depending on how you want to do the transfer, there are different commands. Keep reading to know which to choose. Here we demonstrate how to copy files with Robocopy for common usage with examples. Please open Command prompt, then try them by typing a command and hitting enter. If there is no Backup folder in destination location, the system will create it automatically. Copied jpg files from subfolders will be saved with original structure. However, some commands may wipe certain existing files.

If you lost important files accidently, please try Windows file recovery solution as soon as possible. Now you should know how to copy files on Windows 10 and preserve original date stamp with Robocopy command.



0コメント

  • 1000 / 1000