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