Issues while copying

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sam14189
Posts: 31
Joined: 22 Jan 2015 02:57

Issues while copying

#1 Post by sam14189 » 22 Jan 2015 04:32

Hi All,

I am using simple copy command for copying of files. However i see 1 concern here. The original file which needs to be copied was created on 01/08/2013. Now it gets copied to destination folder but windows date time as 01/08/2013. I want windows date time to relfect when the file was copied, i.e. in this case it should be 01/22/2015. Please help.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Issues while copying

#2 Post by Squashman » 22 Jan 2015 08:07

Which date field are you looking at?
The date modified will not change but the date created will change.

The DIR command will display the date modified by default.

Post Reply