GotoNewestFile in a folder
Moderators: Hacker, petermad, Stefan2, white
GotoNewestFile in a folder
I searched a little but i couldn't find anything related. It would be nice if an internal command (perhaps with a default shortcut - CTRL+SHIFT+N?) existed to place the selection cursor on the newest file in a folder.
Currently this can be achieved by sorting by Date, selecting the first file and then change the sort again to what it was before. With this internal command, if one assigned it to a shortcut, this could be achieved in one step.
There could also be other related commands, like GotoOldestFile, Goto LargestFile, GortoSmallestFile, although i'm not sure they would be as useful as GotoNewestFile.
Currently this can be achieved by sorting by Date, selecting the first file and then change the sort again to what it was before. With this internal command, if one assigned it to a shortcut, this could be achieved in one step.
There could also be other related commands, like GotoOldestFile, Goto LargestFile, GortoSmallestFile, although i'm not sure they would be as useful as GotoNewestFile.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Use button or user-command:
By playing with dir sorting flags you can also jump to oldest, largest, smallest file etc. You can get all flags by executing dir /? in Windows console. Also additional /tc parameter allows sorting by creation date instead of modify date.
Code: Select all
Command: %ComSpec%
Parameters: /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "" "%%COMMANDER_EXE%%" /O /S /L="%%~ff" & exit"
Start path: <empty!>
Ha. I had implemented this and forgotten about it for a while (MVV, many thanks BTW) but i just discovered something. If the folder i'm in contains subfolders and files, this command selects the newest subfolder instead of a file and then it enters in it!
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
For some reason, the bold part from here ('dir /b /a-d /o-d') was missing. It now works almost perfectly. I don't know why but it does not work in the root path of the drive, but since i don't put any files there personally i don't care.
Thanks MVV.
Thanks MVV.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.


- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.