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 » 11 Jun 2020 16:46

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: 9101
Joined: 06 Feb 2011 00:33

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

Post by highend » 11 Jun 2020 16:56

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 or paypal_donate (at) stdmail (dot) de

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

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

Post by aliteralmind » 11 Jun 2020 17:50

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: 9101
Joined: 06 Feb 2011 00:33

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

Post by highend » 11 Jun 2020 17:59

By reading the help file entry for loadsearch?
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

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

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

Post by aliteralmind » 11 Jun 2020 18:00

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 » 11 Jun 2020 18:01

Ah! I guess that would help.

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

Post Reply