Solved

how to replace file

Posted on 2013-01-22
5
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 25

Accepted Solution

by:
Tony Giangreco earned 500 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

626 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