Skip to main content

Windows touch command

If you like the unix command touch and want to to something similar in Windows, i.e. change the time stamp of a file, then there is not built-in command for that. Instead use the copy command like this:

copy /b foo.txt +,,

If you really want a touch command, then place it in a batch file called touch...

Comments