Get e-mails with new posts.

Web Site

TouchMax

TouchMax changes the CreationTime or ModifiedTime of files and folders. This is useful for digital photographs and videos. Maybe you forgot to set the date/time of your camera before you went on vacation. Since most image software reads the timestamp the camera stores in the image’s EXIF area, that means it will think your beach pictures were taken in January or that Daylight Saving Time wasn’t in effect. Use TouchMax along with JHead to correct these settings. TouchMax will set the image files’ creation time and JHead will set the EXIF data from that.

Maybe your software development company needs to modify the CreationTime or ModifiedTime of certain files during a build process. TouchMax can help.

Download

This is a console application, so it’s intended for use in a batch file or script.

Commercial License

TouchMax is free for personal and educational use. If you’d like to use it in a commercial environment (e.g., to release with a product you sell, to release with a product you use internally, or to manage company computers), you must purchase a commercial license. In brief, a commercial license entitles your company to unlimited use of Display Changer.

Commercial License


Resellers: please contact me directly for pricing.

Switches

-setfiles Set timestamps of files that match the pattern.
-setfolders Set timestamps of folders that match the pattern.
-setcreation Change the creation time of files and/or folders.
-setmodified Change the last-modified time of files and/or folders.
-usenow | -usecreation | -usemodified Set the file (or folder) timestamp to the current time, creation time, or last-modified time.
-Y{ = | + | – }# Set the year to the value specified by ‘=’, increase the year by the value specified by ‘+’, or decrease the year by the value specified by ‘-‘.
-M{ = | + | – }# Set the month to the value specified by ‘=’, increase the month by the value specified by ‘+’, or decrease the month by the value specified by ‘-‘.
-D{ = | + | – }# Set the date to the value specified by ‘=’, increase the date by the value specified by ‘+’, or decrease the date by the value specified by ‘-‘.
-h{ = | + | – }# Set the hour to the value specified by ‘=’, increase the hour by the value specified by ‘+’, or decrease the hour by the value specified by ‘-‘.
-m{ = | + | – }# Set the minute to the value specified by ‘=’, increase the minute by the value specified by ‘+’, or decrease the minute by the value specified by ‘-‘.
(All values are 1-based. January is 1, February is 2, etc.)
-recurse Process files and folders in subfolders.

These are the steps TouchMax takes to set a file or folder’s timestamp:

  1. Set timestamp to current time, if specified.
  2. Apply absolute values (=# changes to year, month, date, hour, minute), if any.
  3. Apply relative changes (+# and -# changes to year, month, date, hour, minute), if any.

Examples

  1. Set a file’s ModifiedTime to 15 Sep 2008:
  2. --> touchmax.exe /setfiles /setmodified /Y=2008 /M=9 /D=15 Resume.doc
    
    /My Documents/
    Resume.doc
    	M: 10-6-2009 11:05:29 p 9-15-2008 11:05:29 p
  3. Forgot to set camera ahead one hour for Daylight Saving Time.
    Set CreationTime of all JPG files in folder ahead one hour:
  4. --> touchmax.exe /setfiles /setcreation /h+1 *.jpg
    
    /My Pictures/
    cat.jpg
    	C: 9-12-2008 11:05:29 p 9-13-2008 12:05:29 a
    dog.jpg
    	C: 9-12-2008 11:05:29 p 9-13-2008 12:05:29 a
  5. Set ModifiedTime of text files to a month ago and ten minutes ahead:
  6. --> date /t
    Sat 11-07-2009
    
    --> time /t
    12:03 p
    
    --> touchmax.exe /setfiles /setmodified /usenow /M-1 /m+10 List.txt
    
    /My Documents/
    List.txt
    	M: 9-28-2008 12:11:54 p 10-7-2009 12:13:16 p
  7. Set CreationTime to three days before the ModifiedTime:
  8. --> dir /tW List.txt
    
    09-15-2008  10:05 p               247 List.txt
    
    --> touchmax.exe /setfiles /setcreation /usemodified /D-3 List.txt
    
    /My Documents/
    List.txt
    	C: 9-13-2008 12:05:29 a 9-12-2008 11:05:29 p

    (Note that the time moved ahead an hour because the time change crossed the Daylight Saving Time boundary.)

Requirements

TouchMax runs on Microsoft® Windows® 7, Vista, XP Home and Professional, and Windows Server 2003 and 2008. TouchMax requires the Microsoft .NET 3.5 runtime. TouchMax runs on both Windows 32-bit and 64-bit platforms.