Charles Dye
Super Moderator
- May
- 4,848
- 117
Staff member
Code:
[C:\Bin\TCmd25]date /t
Thu 23/01/2020
[C:\Bin\TCmd25]regdir /t hkcu\control panel\desktop
2020-01-23 11:33 hkcu\control panel\desktop
2019-08-23 11:56 Colors
2020-01-10 16:31 WindowMetrics
2020-01-23 11:33 MuiCached
[C:\Bin\TCmd25]date 2020-07-01
[C:\Bin\TCmd25]regdir /t hkcu\control panel\desktop
2020-01-23 12:33 hkcu\control panel\desktop
2019-08-23 12:56 Colors
2020-01-10 17:31 WindowMetrics
2020-01-23 12:33 MuiCached
[C:\Bin\TCmd25]date 2020-01-23
[C:\Bin\TCmd25]regdir /t hkcu\control panel\desktop
2020-01-23 11:33 hkcu\control panel\desktop
2019-08-23 11:56 Colors
2020-01-10 16:31 WindowMetrics
2020-01-23 11:33 MuiCached
[C:\Bin\TCmd25]
I know that DIR does it this way for compatibility with CMD.EXE. But CMD.EXE doesn't have a REGDIR command. There's no reason to do it wrong for compatibility with a hypothetical bug in a nonexistent command!
While we're at it: How about a
U
suboption to not localize times? And a S
to display seconds? So, for example:
Code:
C:\>regdir /t hkcu\control panel\desktop
2020-01-23 11:33 HKCU\control panel\desktop
2019-08-23 12:56 Colors
2020-01-23 11:33 MuiCached
2020-01-10 16:31 WindowMetrics
C:\>regdir /ts hkcu\control panel\desktop
2020-01-23 11:33:40 HKCU\control panel\desktop
2019-08-23 12:56:56 Colors
2020-01-23 11:33:39 MuiCached
2020-01-10 16:31:32 WindowMetrics
C:\>regdir /tsu hkcu\control panel\desktop
2020-01-23 18:33:40 HKCU\control panel\desktop
2019-08-23 18:56:56 Colors
2020-01-23 18:33:39 MuiCached
2020-01-10 23:31:32 WindowMetrics
C:\>