Click here to Skip to main content
Click here to Skip to main content

Touch For .NET

, 16 May 2005
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

Rob Gallo
Web Developer
United States United States
No Biography provided

Comments and Discussions

 
GeneralImage Link is invalid PinmemberJosh Blair17-May-05 8:30 
GeneralRe: Image Link is invalid PinmemberRob Gallo17-May-05 8:47 

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.

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