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.
[Solved] Script or Hotkey to go to newest file in the file list
-
Horst
- Posts: 1419
- Joined: 24 Jan 2021 12:27
- Location: Germany
[Solved] Script or Hotkey to go to newest file in the file list
Last edited by Horst on 26 Jan 2021 11:37, edited 1 time in total.
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script or Hotkey to go to newest file in the file list
You want that to be a user defined button in XYplorer itself?
Code: Select all
$files = trim(report("{modified yyyy-mm-dd hh:nn:ss}|{fullname}<crlf>", listfolder(, , 1)), <crlf>);
goto gettoken(gettoken(formatlist($files, "r", <crlf>), 1, <crlf>), 2, "|");
One of my scripts helped you out? Please donate via Paypal
-
Horst
- Posts: 1419
- Joined: 24 Jan 2021 12:27
- Location: Germany
Re: Script or Hotkey to go to newest file in the file list
Thats what I searched for, works perfect.highend wrote: ↑26 Jan 2021 11:13 You want that to be a user defined button in XYplorer itself?
Code: Select all
$files = trim(report("{modified yyyy-mm-dd hh:nn:ss}|{fullname}<crlf>", listfolder(, , 1)), <crlf>); goto gettoken(gettoken(formatlist($files, "r", <crlf>), 1, <crlf>), 2, "|");
You are very helpful for a XYplorer beginner.
I made a small donation with PayPal.
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script or Hotkey to go to newest file in the file list
No problem and thanks 
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club