Line Counter on Reports.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Line Counter on Reports.

Post by SkyFrontier »

Can this

Code: Select all

"Names list"
  text report("{Name} - {Size B} bytes<crlf>");
applied to this
1_AHK_Autohotkey_ALT_DforAdressBar.xysAHK - 117 bytes
...
XYtoBehaveNortonCommander_ListOfFilesThatWillBeCopied.xys - 1.241 bytes
have this

Code: Select all

001 - 1_AHK_Autohotkey_ALT_DforAdressBar.xysAHK - 117 bytes
...
189 - XYtoBehaveNortonCommander_ListOfFilesThatWillBeCopied.xys - 1.241 bytes
as output?
Thanks!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Line Counter on Reports.

Post by Stefan »

Yes.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Line Counter on Reports.

Post by SkyFrontier »

Oh, please, don't do that...
lol
-how, Stefan?
Thanks!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Line Counter on Reports.

Post by Stefan »

"How" wasn't the question, only "if".


Well, report() is an scripting command.
And nearly all scripting commands you can find in the XYplorer help
under "Adv Topics > Scripting Commands Reference"

and for report() i can read
"No. {#}, {name}, {size kb} ({size b}), {modified yyyy-mm-dd}"

Optional format definitions for {#}:
{# @@@@} fill with leading blanks
{# 000} fill with leading zeroes

So i guess

Code: Select all

"Names list"
  text report("{# 000} - {Name} - {Size B} bytes<crlf>");
is was you are searching for?

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Line Counter on Reports.

Post by SkyFrontier »

Yes, that's it.
Thank you.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply