Mike-Ward.Net

Touch a File in Windows without a Touch Utility

One of those annoying omissions in Windows is the lack of a Touch utility to update the time stamp of a file. There are dozens of freeware programs available to do this but what if you’re updating something on a corporate system where you don’t have such a utility?

Your can do this from a plain old DOS command as follows:

copy /b Source+,,

where Source is the name of a file.

This updates the current time and date of the file without modifying it. Believe it or not, this is documented behavior! (Copy command)

← newer older →
.Net, Technology, Life, Whatever

Recent Posts

Tweetz 2.0.0 Released
Tweetz 2.0 Beta
VSColorOutput 2.7 - Time Stamps
Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
Tweetz 1.3.2
More... (1088)

Donate