+ Post New Thread
Results 1 to 6 of 6
Windows Thread, Command line 'touch' utility that can change folder dates in Technical; Just a quickie - in the middle of scripting a bunch of batch files to clean up roaming profiles that ...
  1. #1

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

    Command line 'touch' utility that can change folder dates

    Just a quickie - in the middle of scripting a bunch of batch files to clean up roaming profiles that have got messy...

    Has anyone come across a Windows build of touch.exe (or any other similar freeware utility) that can handle changing the created/modified date for folders (ie the actual directory itself, not the contents)? Tried all the ones I can lay my hands on and as far as I can see nothing seems to want to behave...

    Cheers.

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,614
    Thank Post
    747
    Thanked 1,707 Times in 1,520 Posts
    Rep Power
    437

    Re: Command line 'touch' utility that can change folder dates


  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Command line 'touch' utility that can change folder date

    Cygwin has touch.
    http://www.cygwin.com/

  4. #4

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

    Re: Command line 'touch' utility that can change folder dates

    CodeProject one - doesn't touch folders.

    An entire Cygwin base install just to get touch seemed overkill, especially when it may still not work. I have quite a few versions of touch.exe now which are supposedly exact *nix ports anyway and refuse to process folders or instead process the folders contents when passed a folder name as a parameter...

    Thanks for the suggestions though.

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Command line 'touch' utility that can change folder dates

    The only thing you need to run cygwin apps is the cygwin.dll. So you can just stick touch.exe and cygwin.dll in system32 and it'll work quite happily.

    The full blown installer madness is just there for people who need their hands holding (One wonders about the logic of this, presumably if you know you need a *nix command line tool on win32 you can hold your own hands).

  6. #6

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

    Re: Command line 'touch' utility that can change folder dates

    I realised that, I just hate the game of hunt down the incompatible versions of cygwin1.dll I have to play everytime I install something else that depends on Cygwin... Currently my Windows SSH server is cygwin based and seems to be happily running an incompatible version to the current version provided when I download Cygwin/Coreutils to get hold of Touch. Doh.



SHARE:
+ Post New Thread

Similar Threads

  1. Command Line ISO Creator
    By russdev in forum Windows
    Replies: 1
    Last Post: 27th September 2007, 09:04 PM
  2. urgent: Sims.net command line reporter (CLR)
    By russdev in forum MIS Systems
    Replies: 2
    Last Post: 20th September 2007, 03:00 PM
  3. Command line enviroment for pupils.
    By Teth in forum How do you do....it?
    Replies: 16
    Last Post: 16th January 2007, 02:17 PM
  4. Command LIne
    By wesleyw in forum Windows
    Replies: 4
    Last Post: 12th October 2006, 12:10 PM
  5. Command line installs? heeellllppp
    By contink in forum How do you do....it?
    Replies: 2
    Last Post: 2nd October 2006, 05:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •