I have a need (which I'll explain below ... if I remember) to set the Date Modified timestamp on each file in a folder such that each timestamp is slightly higher than the previous file's timestamp (with the directory sorted by name). The actual value of seconds is not important, but I need to be able to set the date, hour, and minute to a specific value. Almost every technique I've seen for doing this allows setting time to the second, but since I'm taking about 80-100 files per directory so I need a resolution below second. The NirSolf "NirCMD SetFileTime" does this when using the "Now" parameter, but for setting specific values it allows specifying only hh:mm:ss. Are there any utilities that allow specifying sub-second values or take timestamps in FILETIME format? I need this to be something that can be called from a script, not invoked a from a GUI. And it would be nice if that script could be a .bat file; my knowledge of PowerShell is next to nonexistent. (I could cope with a VBS script if I really had to.)
Justification:
I have a number of folders whose contained files are sorted by Date Modified - a couple hundred folders with about 50,000 files spread among them. I need to insert several hundred files into a couple dozen folders. Each group of new files is in its own folder and - luckily - is in the correct order sorted by name. I can manually find a date and time that would insert the new files at the correct place in their destination folder, assign that timestamp to the first file to be inserted, increase the timestamp by a small amount and assign it to the next file, etc.
Justification:
I have a number of folders whose contained files are sorted by Date Modified - a couple hundred folders with about 50,000 files spread among them. I need to insert several hundred files into a couple dozen folders. Each group of new files is in its own folder and - luckily - is in the correct order sorted by name. I can manually find a date and time that would insert the new files at the correct place in their destination folder, assign that timestamp to the first file to be inserted, increase the timestamp by a small amount and assign it to the next file, etc.
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- Microsoft
- CPU
- Intel Core i5-8400
- Motherboard
- ASUS PRIME H370-PLUS
- Memory
- 16GB
- Graphics Card(s)
- Intel UHD Graphics 630
- Sound Card
- On board
- Monitor(s) Displays
- Samsung SyncMaster 2043BWX
- Screen Resolution
- 1680 x 1050
- Hard Drives
- Samsung SSD 850 256GB
WDC 1TB NVMe
WD 3TB external USB drive
- PSU
- I don't remember
- Case
- Corsair something-or-other
- Cooling
- Air CPU + 2 case fans
- Keyboard
- DAS S Pro (Cherry Brown)
- Mouse
- Logitech USB of some sort