[Solved] Script or Hotkey to go to newest file in the file list
Posted: 26 Jan 2021 10:26
Is there a script or hotkey which positions the cursor to the newest file in the current displayed file list.
In my other File manager (Total Commander) I used a button like this:
cmd.exe /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "" "%%COMMANDER_EXE%%" /L="%%~ff\:" & exit"
%%COMMANDER_EXE%% is the current running Total Commander.
In XYplorer I tried a User command like this:
"Cmd.exe" /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "C:\Tools\XYplorer\XYplorer.exe" /path="%%~ff\:" & exit"
It isn't working, no errors shown and the cursor is not moved at all.
In my other File manager (Total Commander) I used a button like this:
cmd.exe /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "" "%%COMMANDER_EXE%%" /L="%%~ff\:" & exit"
%%COMMANDER_EXE%% is the current running Total Commander.
In XYplorer I tried a User command like this:
"Cmd.exe" /k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "C:\Tools\XYplorer\XYplorer.exe" /path="%%~ff\:" & exit"
It isn't working, no errors shown and the cursor is not moved at all.