How to save search results to a file?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zBernie
Posts: 181
Joined: 08 Dec 2016 17:20

How to save search results to a file?

Post by zBernie »

After performing a search using the search dialog, is there a way to save the search results to a file?

Just to clarify, I've already saved the search parameters as a search template. I'm just looking to save the results to a file. I can output them to a clipboard, then paste the clipboard into a text editor. But is there a way to save directly to a file?

I'm using XYPlorer 17.40 under Windows 10.

-Thanks

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

Re: How to save search results to a file?

Post by highend »

You could use the Report tab, Current List tab, To File... but the resulting file would contain the data
of all visible columns...

A scripting command on the toolbar / catalog / etc. would work
E.g. if you want to store it in a fixed name in a fixed path:

Code: Select all

writefile("<path to>\Search result.txt", <get ItemsPathNames <crlf>>);
or if you want to select the folder first

Code: Select all

    $folder = inputfolder();
    writefile("$folder\Search result.txt", <get ItemsPathNames <crlf>>);
etc.
One of my scripts helped you out? Please donate via Paypal

zBernie
Posts: 181
Joined: 08 Dec 2016 17:20

Re: How to save search results to a file?

Post by zBernie »

highend wrote:You could use the Report tab, Current List tab, To File... but the resulting file would contain the data
of all visible columns...

A scripting command on the toolbar / catalog / etc. would work
E.g. if you want to store it in a fixed name in a fixed path:

Code: Select all

writefile("<path to>\Search result.txt", <get ItemsPathNames <crlf>>);
or if you want to select the folder first

Code: Select all

    $folder = inputfolder();
    writefile("$folder\Search result.txt", <get ItemsPathNames <crlf>>);
etc.
Ah, the Report tab in the search dialog. Thank you!

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

Re: How to save search results to a file?

Post by admin »

Note that you can save the results right with the Search Template. Tick "Save search results" in the Search Templates dialog...

Can also be scipted using the new function searchtemplate()...

Post Reply