I need script/method to add/rename "folders and files sizes" information as suffix of the file/folder names(BATCH)

Discuss and share scripts and script files...
Post Reply
shuklaharshit75
Posts: 42
Joined: 10 Aug 2024 10:12

I need script/method to add/rename "folders and files sizes" information as suffix of the file/folder names(BATCH)

Post by shuklaharshit75 »

I need script/method to add/rename "folders and files sizes" information as suffix of the file/folder names(BATCH)(auto adjusted in kb/mb/gb etc, rounded value without point in mb, gb, kb etc )

a bit like using Flexible (Rounded Up) - #429; a script/trick in renaming instead of Flexible - #428 option

FOLDER SIZE INFO = SIZE INCLUDING ALL SUBFOLDERS+FILES

Further explanation of my requirement

BEFORE (ORIGINAL)=
NEW_FOLDER
Bb.mp4
Cc__Dd.txt



AFTER(RESULT/OUTPUT)=
NEW_FOLDER_2GB {instead of NEW_FOLDER_1.678GB}
Bb_800MB.mp4 {instead of Bb_798.800MB.mp4}
Cc__Dd_0Bytes.txt


The script or method could be different for files and directry(folder) renaming.
I am unable to achieve my goal with my current batch renaming softwares. Since xyplorer is such a wonderful software, I was just hoping that this could be done within XYplorer somehow.
Screenshot 2024-10-06 233044.png
Screenshot 2024-10-06 233044.png (3.38 KiB) Viewed 2155 times
Screenshot 2024-10-06 233053.png
Screenshot 2024-10-06 233053.png (2.56 KiB) Viewed 2155 times
ccccc.gif
ccccc.gif (513.56 KiB) Viewed 2155 times

highend
Posts: 14427
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: I need script/method to add/rename "folders and files sizes" information as suffix of the file/folder names(BATCH)

Post by highend »

if

Code: Select all

text formatbytes(foldersize(<curitem>, "<r>"), "FLEXR");
for a folder doesn't show the value you want you should try it with round() instead...
One of my scripts helped you out? Please donate via Paypal

Post Reply