[Lavanya Deepak] Lavanya Deepak
Technology for Better Business and Higher Standards of Life

Monday, July 18, 2011

A 'Gentle Touch' command in C#

In Unix world we have a command called 'touch' which when invoked on the file updates the timestamp of the file to the current timestamp. I just thought would share a quick implementation of the same in C# for the benefit of beginners in .NET.  Check out the source implementation here.

Currently this supports only a single file. 

Things to do:
  1. Recursive touch of files and folderswhen invoked on a directory. If you are interested to contribute let me know and I can add you as a co-member of the Sourceforge project.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home