Delete file history and recent files command

Features wanted...
Post Reply
alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Delete file history and recent files command

Post by alan65 »

I would like a command (with icon) that will delete the file history and list of recently accessed files. I found a way to do it by directly editing the xyplorer.ini file, but I think it's a feature that should be built-in.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Delete file history and recent files command

Post by klownboy »

These short scripts can be used anywhere like in the Address bar or on a Customized Toolbar Button, Catalog, etc.

Delete History sendkeys '%n{Enter}%c{Enter}'; #618;
Delete Recent Files sendkeys '%n{Enter}%c{Enter}'; #632;
Delete Recent Locations sendkeys '%n{Enter}%c{Enter}'; #631;

You can also use List Management under the Tools Menu to delete these lists or take a look at List Management House Cleaning script viewtopic.php?f=7&t=13948

alan65
Posts: 40
Joined: 15 Nov 2019 19:52

Re: Delete file history and recent files command

Post by alan65 »

klownboy,
Thanks for you suggestions. They are VERY helpful. I'm still new to XYplorer and am still learning how to make customizations of this type.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Delete file history and recent files command

Post by klownboy »

Thank you. You can actually combine all three of those into one script to clean all of them at once in user defined command or a CTB. It's a bit of a hacky way of automating the process (i.e., sendkeys is undocumented script command), but it works. The screen will flicker as sendkeys does its work.

Post Reply