HEELPBOOK - How do I "touch" a file with standard Windows commands? (Linux - Windows) ################### ###### Scenario I need to reproduce good old touch hello.c using nothig else but standard Windows commands. How can I change the date of a file, but not its content, using nothing else but what is provided in a standard Windows XP Pro installation (CMD, FIND, SORT, etc.)? ###### Solution Open CMD (Run As Administrator). This command will change a file's date and timestamp to current. copy <> /B+ ,,/Y If you want to do a bulk change in a directory, for say, all .gif files, then: for %i in ('dir *.gif') do copy %i /B+ ,,/Y ############ ARTICLE INFO ############# Article Month: January Article Date: 17/01/2013 Permalink: http://heelpbook.altervista.org/2013/how-do-i-touch-a-file-with-standard-windows-commands-linux-windows/ Source: http://stackoverflow.com/questions/7249233/how-do-i-touch-a-file-with-standard-windows-commands?rq=1 Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook Linkedin: http://it.linkedin.com/pub/stefano-maggi/27/73a/b20 Google+ : https://plus.google.com/116990277568167008289/posts