Click here to Skip to main content
13,092,310 members (58,798 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 16 May 2005

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


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.


  • Version 1.0 - 5/14/2005


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
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralImage Link is invalid Pin
Josh Blair17-May-05 7:30
memberJosh Blair17-May-05 7:30 
GeneralRe: Image Link is invalid Pin
Rob Gallo17-May-05 7:47
memberRob Gallo17-May-05 7:47 
Corrected image and srczip links

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 16 May 2005
Article Copyright 2005 by Rob Gallo
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid