Page 1 of 1

Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 01:01
by semicodin
So I've got this folder and want to exclude just one sub-folder, and report on the rest. I noodled around with it, thinking I should just check all the folder boxes but the one I don't want and it keeps taking the entire contents.

Here's what I need:
  1. FILE NAME
  2. FILE PATH
  3. FILE SIZE
  4. DATE Created
  5. DATE Modified
  6. DATE Accessed
  7. FILE EXTENSION (in its own column)
Thanks for any help! :mrgreen:

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 05:58
by highend
If you want a customized report, use folderreport() and filter what it spits out (regexreplace() / formatlist())

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 17:49
by semicodin
Highend thank you for the reply. I'm sorry to ask this but I have no idea what you mean. :oops: Doesn't XYplorer have a built-in option somewhere to do this? ie. clicking boxes, or selecting options?

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 18:10
by admin
F12 (Info Panel) -> Report Tab -> Current List

The report will show all columns you currently have in the list.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 18:24
by highend
F12 (Info Panel) -> Report Tab -> Current List
It reports on selected items (even folders) but not on their content (recursive)?

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 18:41
by admin
True.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 18:57
by highend
So he either needs to do the report via scripting (as currently suggested) or XY needs an option to do reports for
"Selected Items" recursively

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 18:59
by semicodin
highend wrote:F12 (Info Panel) -> Report Tab -> Current List
reports on selected items (even folders) but not on their content (recursive)
By which I take you to mean, Highend, the file names themselves? Well shoot. I'll have to do this in Treesize Pro (or one of the exceedingly inferior free file managers). :veryconfused: I'm not casting aspersions but . . . isn't this kind of a core feature in a file manager? Even that piece of shit from Vcom has this feature.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:11
by TheQwerty
You can do it in the GUI by performing a recursive search (or branch view) for all items (empty name or '*') first and then generating a Current List report on the results. This also allows you to exclude specific folders as desired.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:22
by semicodin
TheQwerty wrote:You can do it in the GUI by performing a recursive search (or branch view) for all items (empty name or '*') first and then generating a Current List report on the results. This also allows you to exclude specific folders as desired.
It doesn't work Qwerty. And it just crashed my XYplorer.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:28
by highend
A combined way to achieve what you want (works only with the pro version!)
but looks nearly identical to what XY provides...
Should at least work correctly with non unicode folder names :mrgreen:

F12, Report, Current Folder
Select the folders for that you need the report!

Use (o) Classic directory dump
[x] Include subfolders
Click "To Clipboard"

Run this script:

Code: Select all

    $sep = strrepeat("=", 80);
    $content = gettoken(<clipboard>, 3, $sep, , 2);
    $selected = <get SelectedItemsPathNames <crlf>>;
    $folders = listfolder(, , 2, <crlf>);
    foreach($item, $folders, <crlf>) {
        if (strpos($selected, $item) == -1) { // not found, remove it
            $escaped = regexreplace($item, "([\\^$.+*|?(){\[])", "\$1");
            $content = regexreplace($content, "$sep\r?\n$escaped\\[\s|\S]+?$sep");
        }
    }
    copytext formatlist($content, "e", <crlf>);
Now paste (CTRL + v) the clipboard's content where you need it...

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:30
by TheQwerty
semicodin wrote:
TheQwerty wrote:You can do it in the GUI by performing a recursive search (or branch view) for all items (empty name or '*') first and then generating a Current List report on the results. This also allows you to exclude specific folders as desired.
It doesn't work Qwerty. And it just crashed my XYplorer.
I've done this countless times and it does work.

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:34
by semicodin
highend wrote:. . . Now paste (CTRL + v) the clipboard's content where you need it...
OUCH. Thanks but I'll pass. :shock:

Re: Need a little guidance on producing REPORTS

Posted: 31 Oct 2016 19:50
by highend
Then just replace copytext with text?