Page 1 of 1

Delete file history and recent files command

Posted: 06 Feb 2020 15:08
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.

Re: Delete file history and recent files command

Posted: 07 Feb 2020 00:41
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

Re: Delete file history and recent files command

Posted: 07 Feb 2020 18:19
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.

Re: Delete file history and recent files command

Posted: 07 Feb 2020 20:58
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.