Need a little guidance on producing REPORTS

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
semicodin
Posts: 35
Joined: 10 Nov 2014 19:19

Need a little guidance on producing REPORTS

Post 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:

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a little guidance on producing REPORTS

Post by highend »

If you want a customized report, use folderreport() and filter what it spits out (regexreplace() / formatlist())
One of my scripts helped you out? Please donate via Paypal

semicodin
Posts: 35
Joined: 10 Nov 2014 19:19

Re: Need a little guidance on producing REPORTS

Post 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?

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

Re: Need a little guidance on producing REPORTS

Post by admin »

F12 (Info Panel) -> Report Tab -> Current List

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

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a little guidance on producing REPORTS

Post by highend »

F12 (Info Panel) -> Report Tab -> Current List
It reports on selected items (even folders) but not on their content (recursive)?
One of my scripts helped you out? Please donate via Paypal

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

Re: Need a little guidance on producing REPORTS

Post by admin »

True.

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a little guidance on producing REPORTS

Post 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
One of my scripts helped you out? Please donate via Paypal

semicodin
Posts: 35
Joined: 10 Nov 2014 19:19

Re: Need a little guidance on producing REPORTS

Post 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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Need a little guidance on producing REPORTS

Post 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.

semicodin
Posts: 35
Joined: 10 Nov 2014 19:19

Re: Need a little guidance on producing REPORTS

Post 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.

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a little guidance on producing REPORTS

Post 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...
One of my scripts helped you out? Please donate via Paypal

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Need a little guidance on producing REPORTS

Post 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.

semicodin
Posts: 35
Joined: 10 Nov 2014 19:19

Re: Need a little guidance on producing REPORTS

Post by semicodin »

highend wrote:. . . Now paste (CTRL + v) the clipboard's content where you need it...
OUCH. Thanks but I'll pass. :shock:

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a little guidance on producing REPORTS

Post by highend »

Then just replace copytext with text?
One of my scripts helped you out? Please donate via Paypal

Post Reply