Historical Note

This page was migrated from the original p-nand-q.com site which was last updated in 2015. The content has been preserved exactly as it was, with only formatting updated for modern browsers. Over the coming days and weeks, the content will be reviewed and may be updated for accuracy and relevance. If you find any issues, please contact me.

touch

This tool changes the date/time of a file. Typically, it sets it to the current date/time, but you can also specify a specific one. It can process directories recursively.

Usage

C:\...\>touch.exe /?
touch - Version 4.0
Freeware written by Gerson Kurz (http://p-nand-q.com)

USAGE: touch.EXE [OPTIONS] DIR {DIR}.
OPTIONS:
         /DATE: Specify date in the format YYYY-MM-DD
         /TIME: Specify time in the format HH:MM:SS
    /RECURSIVE: search directories recursively
     DIR {DIR}: one or more directories to search

Examples

To update all files in the current directory, type:

C:\...\>touch .

To touch all .py files in a tree, recursively, try this one:

C:\...\>touch /RECURSIVE *.py 

Download

License

touch is freeware, BSD-licensed.

History


GK, Feb 16, 2014