Documentation for the copy command is on TechNet. Nirsoft to the rescue: try the freeware tool nircmd. It's a bunch of useful tools in one small command line program. One of the commands allows you to specify either or both of created time and modified time , like this:. The Win32 Console Toolbox contains a utility called 'touch' that lets you modify the times on one or more files.
I believe it only works with US format times, though. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How can I change the timestamp on a file? Asked 10 years, 7 months ago. Active 3 years, 4 months ago. Viewed k times. Improve this question. Community Bot 1. Joe Hansen Joe Hansen 4, 3 3 gold badges 23 23 silver badges 27 27 bronze badges.
You should probably clarify your question and state that you want to choose the new timestamp. The two current answers assume you are looking for a Windows port of the Unix command touch that sets a files's timestamp to the current time. I've looked through Sysinternals, and I'm pretty sure they don't have a utility for this. You should try the programs linked to from superuser.
William Jackson Changed, thanks for that. Also, if it truly was a port of the Unix command touch , I could specify the date. Something is wrong with the auto linking though, make sure you get both parentheses.
You have taught me something new. Duplicate of Windows equivalent of the Linux command 'touch'? Add a comment. Active Oldest Votes. Improve this answer. For people that don't know much about Powershell, you have to put the filename after Get-Item. Finally you can pass that code as an argument to the powershell command to have it just execute that from an existing batch file. What if I want to do this for every file in a directory? Show 1 more comment. It works on all versions of Windows and is available for both bit and bit OS editions.
There is no simple way to do this in windows. There are several programs which claim to be able to preserve the creation date of files. The software provides allot of other features like e-mail notification when job is done, scheduling your copy etc. Its very robust and reliable. You must give it a try.
Hope this might help. The new file will have the current time stamp. Also note that you can change the seconds on the timestamp window, but only minutes show on the file manager display. It works for me! Your email address will not be published. This site uses Akismet to reduce spam. Learn how your comment data is processed.
0コメント