Print Folder Problem

Hi all,

I'm trying to calculate the average size of the files currently selected. For this, I wanted use the Print FOLDER command to copy the sizes to the clipboard and then a short JScript for the calculation. A special folder format I added only shows the size (first column) and the file name - this should be easy to parse.

According to the documentation there are three options for the AS argument of the Print FOLDER command: txt, csv and tab. I tried the first command:

Print FOLDER=selected AS=txt QUIET FLATVIEW=no FORMAT="Only Sizes" TO clip

Result:

[code] Size on Disk Name

      8.192 comments.vb
     45.056 config.png
    512.000 first.dll
      4.096 first.ini
      4.096 test.bat[/code]

Since csv or tab would be better for parsing, I also tried these:

[code]Print FOLDER=selected AS=csv QUIET FLATVIEW=no FORMAT="Only Sizes" TO clip

Print FOLDER=selected AS=tab QUIET FLATVIEW=no FORMAT="Only Sizes" TO clip[/code]
I was expecting a differently formatted output in the clipboard, but each time the result is the same. Am I doing something wrong or is this a bug?

Thanks a lot,
MartO

It appears that the documentation is slightly inaccurate in this regard :frowning:

The correct command is:

Print FOLDER=selected QUIET FLATVIEW=no FORMAT="Only Sizes" TO clip:csv

The AS argument is only used when printing to a file.

Ah well, an undocumented feature... :wink:

Thanks, jon, it works now!
MartO