Page 1 of 1

Search for newest files underneath current directory (save search)

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

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

Posted: 11 Jun 2020 16:56
by highend
Use "Edit - Search Templates" after your search and save that template?

and
loadsearch <template>
on a button...

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

Posted: 11 Jun 2020 17:50
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?

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

Posted: 11 Jun 2020 17:59
by highend
By reading the help file entry for loadsearch?

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

Posted: 11 Jun 2020 18:00
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.

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

Posted: 11 Jun 2020 18:01
by aliteralmind
Ah! I guess that would help.

I will do that. Thanks again.