Subscribe Today

Guardian Updates


Receive HTML?

Guardian News

Free Themes

Location

PDF Print E-mail

Touch 2.1.0 sets the date and time of a file. This is a command line program which requires the Microsoft .NET 2.0 Framework to run. The C# source code is available in the Source Code folder in the program installation folder.

Usage

touch [file] [year] [month] [day] [hour] [minutes] [seconds]

file              file to modify date and time
            year            4 digit year, i.e. 2005
            month         number 1 to 12, i.e. 3 for March
            day             number 1 to 31, i.e. 5 for fifth day of the month
            hour            number 0 to 23, i.e. 7 for 7 AM, and 19 for 7 PM
            minutes       number 0 to 59
            seconds      number 0 to 59

 
Examples

 
   touch

               Displays this help screen.

    touch foo.txt

               Sets the date and time of foo.txt to the current date and time.

   touch foo.txt 2005 12 14 15 4 27

               Sets the date and time of foo.txt to Dec. 14, 2005, 3:04:27 PM.

  
Source Code

 

The C# source code can be found in the Source Code folder where the program was installed. The code can be compiled with Visual C# 2005 Professional, Enterprise, or Express editions.

Download Touch 2.1.0