Search for new files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jdev21
Posts: 45
Joined: 08 Oct 2014 22:13

Search for new files

Post by jdev21 »

How can I search for files in all current subfolders that are no older than 7 days? Is this possible?

highend
Posts: 14950
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for new files

Post by highend »

ctrl + f
date tab
in the last 7 day(s)

and if you don't want to list folders:
attribute tab
[x] not directory
One of my scripts helped you out? Please donate via Paypal

jdev21
Posts: 45
Joined: 08 Oct 2014 22:13

Re: Search for new files

Post by jdev21 »

Thank you. Is it possible to do this as a command for the catalog?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Search for new files

Post by bdeshi »

Yep.
First open the Find fails pane, and click "Reset Filters"
then setup the find tabs as directed.
Now open Menu > Edit > Search Templates.
click "Save template", and give it a descriptive name. Suppose the name was "files_last_7days"
Now add a new catalog entry, and put this in for "Location"

Code: Select all

::loadsearch "files_last_7days", 'r';
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66323
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search for new files

Post by admin »

Since Quick Search also supports search by date there is an easier way:

Code: Select all

?ageM: <= 7 d /r
It will search the current location recursively (= including subfolders) for items 7 days old or younger.

Here's the Catalog item for the job:
To see the attached files, you need to log into the forum.

jdev21
Posts: 45
Joined: 08 Oct 2014 22:13

Re: Search for new files

Post by jdev21 »

Perfect. Thank you both.

Post Reply