Restrict Text Report to a particular filetype e.g. *.tab

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
dhickey
Posts: 2
Joined: 29 May 2017 01:18

Restrict Text Report to a particular filetype e.g. *.tab

Post by dhickey »

Restrict Text Report to a particular filetype e.g. *.tab

Hi,

I would like to be able to run a script recursively over very large drives to find files of a specific type without having to first use Find Files. Is this possible, the current script I am using is below, what I want is to be able to run this but limit the results to a single file type.

Script:

text report("{Name}|{Fullpath}|{prop:Owner}|{modified yyyy-mm-dd hh:nn:ss}|{created yyyy-mm-dd hh:nn:ss}|{accessed yyyy-mm-dd hh:nn:ss}|{Size MB}|{Len}<crlf>")

Thanks, Daryl.

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

Re: Restrict Text Report to a particular filetype e.g. *.tab

Post by highend »

Welcome to the forum.

report() has a second argument, [itemlist], so:

Code: Select all

text report("{Name}|{Fullpath}|{prop:Owner}|{modified yyyy-mm-dd hh:nn:ss}|{created yyyy-mm-dd hh:nn:ss}|{accessed yyyy-mm-dd hh:nn:ss}|{Size MB}|{Len}<crlf>", quicksearch("*.tab", , "|"));
Start it while you are in the root of a drive or give quicksearch the full path as it's second argument...
One of my scripts helped you out? Please donate via Paypal

dhickey
Posts: 2
Joined: 29 May 2017 01:18

Re: Restrict Text Report to a particular filetype e.g. *.tab

Post by dhickey »

Hi,

This is working, albeit slowly, thanks for your assistance.

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

Re: Restrict Text Report to a particular filetype e.g. *.tab

Post by highend »

quicksearch() is fast, report() is rather slow (but it has to fetch some information for every file, so...)
One of my scripts helped you out? Please donate via Paypal

Post Reply