Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to know how to change last modified datetime of a file using C/C++ code?
Posted

You could use SetFileTime[^] function or _utime[^] function family
in order to change the last modified time of a file. :)
 
Share this answer
 
If you want to modify last modified datetime then you must be having full access to the file. Access it, open it and append anything to it (a space!) or whatever you want to modify... it will automatically change the modified datetime!

What else?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900