Is there software that does the same as Unix 'touch'?


  1. Posts : 169
    Windows 7 Ultimate x64 SP1
       #1

    Is there software that does the same as Unix 'touch'?


    I need to do what I think is a somewhat complex thing. I have a drive with almost 1500 folders in it. Some of these folders are parents and do not have files directly under them, just child folders. The child folders all have files with various dates. I need a way to do a recursive check of all folders, and down at the child folders do a touch on that folder so that it takes the timestamp of the oldest file in that folder. Then when it recurses up to the parent, if there are only child folders there the parent folder should get a touch to take the timestamp of the oldest folder in that subdirectory etc.

    I think I can do this in Unix (it's been years since I've done anything like that but I think it's possible). The question is whether there's a way to do this in Win7?
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    I would put a request here

    Please read the rules/guidelines before posting. If someone there knows of a freeware already existing that does it, they will post. Otherwise if one of the coders thinks it can be hammered out in a reasonable time, they may volunteer to write the program for you.
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    Note that in addition to the approach above, there are Win32 ports of most Linux commands. You may be able to run bash shell and do what you want using a combination of 'find' and 'touch'. This site is one example.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:41.
Find Us