Click here to Skip to main content
Licence 
First Posted 16 May 2005
Views 26,026
Bookmarked 11 times

Touch For .NET

By | 16 May 2005 | Article
Implementation of a simple Touch style command for .NET.

Sample screenshot

Introduction

This code handles some of the problems that I have encountered with other Windows Touch style utilities such as lack of support for wildcards and full directory recursion.

Using the code

Using the code is simple, just run the options you want from the command line.

Example: Update all .js files in a web folder, by setting their create and modify date to the current system date time.

   c:\>touchfornet d:\inetpub\wwwroot\scripts\*.js /f /g

Example: Update the create and modify date on a directory to a previous day.

   c:\>touchfornet D:\myDir /d /f /t"05/10/2005 2:15pm"

Example: Update MP3 files to share the same create date time, good for archiving.

   C:\>touchfornet D:\MP3\*.mp3 /f /g /r /t"05/01/2005"

MONO example:

[rob@linuxBox]$ mono touchfornet.exe /MP3/*.mp3 /f /g /r /t"05/01/2005"

Points of Interest

This code shows a simple implementation of recursive programming for working with directories.

History

  • Version 1.0 - 5/14/2005

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Rob Gallo

Web Developer

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralImage Link is invalid PinmemberJosh Blair7:30 17 May '05  
GeneralRe: Image Link is invalid PinmemberRob Gallo7:47 17 May '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 16 May 2005
Article Copyright 2005 by Rob Gallo
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid