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

tony22

New member
Member
VIP
Local time
11:39 PM
Messages
172
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 My Computer

At a glance

Windows 7 Ultimate x64 SP1E8400 E0 stepping @ 4.05GHz2x2GB + 2x1GB MushkineVGA GTS 250SC
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64 SP1
CPU
E8400 E0 stepping @ 4.05GHz
Motherboard
Abit IP35-E, BIOS v.18b1
Memory
2x2GB + 2x1GB Mushkin
Graphics Card(s)
eVGA GTS 250SC
Sound Card
Onboard
Monitor(s) Displays
Sony FW900
Screen Resolution
1600x1024
Hard Drives
WD Black 1TB SATA
PSU
Corsair 550W
Case
CM Scout
Cooling
Scythe Mugen2
Keyboard
PS2
Mouse
PS2
Internet Speed
FiOS
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top