Posted by : Deepak Vasudevan Monday, July 18, 2011

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.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -