Search for newest files underneath current directory (save search)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Search for newest files underneath current directory (save search)

Post by aliteralmind »

I'd like to be able to press a toolbar button (or by clicking an item in the section in the below screenshot... don't know what it's called), to start a search that shows me all *.txt files in that directory (or sub directories) that were created or modified in the last couple hours. How can I do this?

I can do the search just fine:

Code: Select all

Find Files:

Name & Location:
- Name: *
- Type: Text files
- Location: xxx

Date: 
In the last 2 hours
Thanks.

Image
Windows 8.1, 64-bit

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

Re: Search for newest files underneath current directory (save search)

Post by highend »

Use "Edit - Search Templates" after your search and save that template?

and
loadsearch <template>
on a button...
One of my scripts helped you out? Please donate via Paypal

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Search for newest files underneath current directory (save search)

Post by aliteralmind »

Excellent! Thanks.

How can I do this so it uses the current directory, instead of the directory used when the search was saved?
Windows 8.1, 64-bit

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

Re: Search for newest files underneath current directory (save search)

Post by highend »

By reading the help file entry for loadsearch?
One of my scripts helped you out? Please donate via Paypal

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Search for newest files underneath current directory (save search)

Post by aliteralmind »

I mean to say, how can the saved search use the directory at which I am located when the search is EXECUTED, as opposed to the directory saved into the search.
Windows 8.1, 64-bit

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Search for newest files underneath current directory (save search)

Post by aliteralmind »

Ah! I guess that would help.

I will do that. Thanks again.
Windows 8.1, 64-bit

Post Reply