Open newest subfolder

Hi I would like to trigger a script (I think) to open the newest subfolder of a folder I activate from a streamdeck button.

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /CMD Prefs LAYOUT="ShareX"

Running that opens dopus exactly how I want it, active pane is the screenshot folder of shareX. Now I want to automatically open the newest folder in the screenshots folder. I figured I might need to call a function with the dopusrt commandline. Any pointers would be great! Thanks!

Create a user command

Prefs LAYOUT="ShareX"
[
Select NONE
Select DATE=newest TYPE=dirs 
Go FROMSEL 
]

and call it with dopusrt.exe.

1 Like

@lxp that works great, highly appreciated!