Page 2 of 2
Re: why this can't be undone
Posted: 22 May 2011 20:11
by admin
admin wrote:tiago wrote:Don:
Any way to force this to report subfolders contents apart?
...
Nope.
Well, I could improve it...

Re: why this can't be undone
Posted: 22 May 2011 21:27
by tiago
admin wrote:admin wrote:tiago wrote:Don:
Any way to force this to report subfolders contents apart?
...
Nope.
Well, I could improve it...

Reporting subfolders up to a given sub-level, then the sub-sub-level and so on...? That would be great, Don. Reports supporting level-control would allow incredible improvements on controlling folders' contents I think.
First (files on current folder)
sub1, sub2, sub3...
Last (files on the last level of subfolders)
Re: why this can't be undone
Posted: 29 Sep 2012 07:56
by kiwichick
Hi there, This script is perfect for me! I have a folder that I regularly 'suction'. But is there a way to make the script ignore hidden files and folders? (XYplorer is not set to show them.) Cheers.
Re: why this can't be undone
Posted: 29 Sep 2012 08:45
by highend
Sure.
Look at the template option {Attr} for report() (which can be used for folderreport() as well) in the help file.
Ofc you have to use a gettoken() for the H flag in the output for each file and rebuild your file list afterwards (+ remove all attributes).
As an alternative, a second foreach loop in the first one that uses property("attrib", $token) and a gettoken() to check for the "H" again
to build a new list of files, that doesn't contain these entries.
Re: why this can't be undone
Posted: 29 Sep 2012 11:31
by kiwichick
Thanks highend, Before I look into that, would it change what I need to do if it's only one known hidden file that would be affected - desktop.ini?
Re: why this can't be undone
Posted: 29 Sep 2012 11:39
by highend
Ofc.
formatlist() can filter out such entries.
An example:
$a="D:\a.txt|D:\b.txt|D:\desktop.ini|D:\c.txt"; text formatlist($a, "f", "|", "!*desktop.ini");
Re: why this can't be undone
Posted: 29 Sep 2012 12:36
by kiwichick
Thanks highend, That did it!