Code Monkey home page Code Monkey logo

touchmax's Introduction

TouchMax by 12noon.com

.NET

Did you forget to set your camera's time to Daylight Saving Time? TouchMax can fix it as well of many other issues you might encounter with the creation or modification timestamps of your files and folders.

TouchMax changes the Creation-Time and/or Modified-Time of any files or folders. It can use an absolute time or one relative to the file's creation time, file's modified time, or current time.

Usage

TouchMax.exe [switches] <pattern>

Switch Description
/test Display values without making changes
/setfiles set file timestamps
/setfolders set folder timestamps
/recurse process subfolders
/setcreation change creation time of the files
/setmodified change modified time of the files

Optionally, add the following switches to increment, decrement, or set a date/time component.

Switch Description
/Y+# or /Y-# or /Y=# set the year
/M+# or /M-# or /M=# set the month (January is 1, etc.)
/D+# or /D-# or /D=# set the date (1-31)
/h+# or /h-# or /h=# set the hour (1-12)
/m+# or /m-# or /m=# set the minute (0-59)
+ increments that value by the specified number
- decrements that value by the specified number
= sets that value to the specified number

Optionally, add one of the following switches to establish a base timestamp:

Switch Description
/usenow set timestamp to current time before modifying
/usecreation set timestamp to file's creation time before modifying
/usemodified set timestamp to file's modified time before modifying

Process

TouchMax follows these steps to set a file or folder's timestamp:

 1. Set timestamp to now (or to the creation time or to the modified time),
	if `/usenow` (or `/usecreation` or `/usemodified`) is specified.
 2. Apply absolute values, if any.
 3. Apply relative changes, if any.

Examples

Set Modified-Time of a file to the current date/time:

touchmax.exe /setfiles /setmodified /usenow Test.log

If you forgot to set your camera's time ahead one hour for Daylight Saving Time, you can set the Creation-Time of all JPG files in folder ahead one hour:

touchmax.exe /setfiles /setcreation /h+1 *.jpg

Set Modified-Time of text files to last month and ten minutes ahead:

touchmax.exe /setfiles /setmodified /usenow /M-1 /m+10 *.txt

Set Creation-Time to three days before the Modified-Time:

touchmax.exe /setfiles /setmodified /usemodified /D-3 *.txt

Set a file's Modified-Time to 15 Sep 2008:

touchmax.exe /setfiles /setmodified /usemodified /Y=2008 /M=9 /D=15 test.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.