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
- Starting with version 3.2,
touch
is part of gtools, which you can download here.. - The sourcecode is hosted on code.google.com.
License
touch is freeware, BSD-licensed.
History
- Version 4.0 - Feb 16, 2014
- Added the
/DATE
and/TIME
options
- Added the
- Version 3.2
- First public release.
GK, Feb 16, 2014