Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to replace file

Posted on 2013-01-22
5
Medium Priority
?
289 Views
Last Modified: 2013-01-28
Hi Experts,

Is there any way to replace a file in a windows folder without changing the modified date ?
any command line option while overwrite an existing file but do not modify the date, remain as previous date.
Propmt response would be highly appreciated.

Thanks
0
Comment
Question by:alam747
5 Comments
 
LVL 25

Accepted Solution

by:
Tony Giangreco earned 2000 total points
ID: 38808394
The only way I know is to change the system clock & date back to just before the date on that file and make your change at the exact time already on the file.
0
 
LVL 1

Expert Comment

by:alatechsolutions
ID: 38808471
robocopy comes to mind. Not fully sure what your goal is or the scenario where you would need such a feature. If you give us a better understanding of what you are trying to accomplish with this, maybe there is another way?

look at the /copy:<copy flags> of robocopy here: http://technet.microsoft.com/en-us/library/cc733145(v=ws.10).aspx

very powerful command line tool... Let us know how it goes
0
 
LVL 2

Expert Comment

by:browningit
ID: 38808535
What comes to mind for me is a java command that can edit the final result, but I would only suggest this as a last stance and "don't be evil" connotation to it.

It allows you to re-date any file in a Windows OS.

Again, this is traceable with any expert.  But if you are looking to make it seem like you submitted your paper on time to the prof.?  I completely understand ;)

Don't be evil.

**apparently the attachment option doesn't allow me to put it here, so PM me for a link to the file**
0
 
LVL 25

Expert Comment

by:Tony Giangreco
ID: 38812846
Have you tried one of these solutions?
0
 

Author Closing Comment

by:alam747
ID: 38829567
thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question