Page 1 of 1

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

Posted: 31 May 2017 03:57
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.

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

Posted: 31 May 2017 07:57
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...

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

Posted: 01 Jun 2017 06:24
by dhickey
Hi,

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

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

Posted: 01 Jun 2017 07:33
by highend
quicksearch() is fast, report() is rather slow (but it has to fetch some information for every file, so...)