dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
391

inGearX
3.1415 9265
join:2000-06-11
New York

inGearX

Member

is there any way to rename folders and attach it's folder size in MB?

there is great renaming soft like

»www.bulkrenameutility.co ··· hots.php

but it lacks this option :/

one hack I can think of is to use »www.splashsoft.de/Freewa ··· acs.html to get a size report of the folder and it's folders - and it can generate a .HTML report ..

like so




and use that to run a .BAT to rename

sivran
Vive Vivaldi
Premium Member
join:2003-09-15
Irving, TX

sivran

Premium Member

So you want to append the size of a folder's contents to the name of the folder?

eg \folder name 65MB\

Can't think of any renamers that will do that.

therube
join:2004-11-11
Randallstown, MD

therube to inGearX

Member

to inGearX
And what names would they be?

McKenna_265
McKenna_265/Alien Dreamtime_59
McKenna_265/Amazonia_Shamanizm_156

Siren can do file sizes (bytes, KB, MB, GB) not sure if that also covers directory sizes, but you could try & see.

mmainprize
join:2001-12-06
Houghton Lake, MI

mmainprize to inGearX

Member

to inGearX
Click for full size
I use XYplorer
»www.xyplorer.com/

It shows the directory size in the File pane.
AnonShawUser
join:2006-06-17
Calgary, AB

1 edit

AnonShawUser to inGearX

Member

to inGearX
Install AutoHotKey from www.ahkscript.org and copy the below code into a text file and save it as BulkFilesizeRename.AHK (or whatever you want to call it).

FileSelectFolder,FolderName
; Remove the below semicolon if you want it to recurse through all folders inside the selected root folder and rename the folders in turn
Loop,%FolderName%\*.*,2 ;,1
{
TempFolder = %A_LoopFileFullPath%
FolderSize = 0
Loop, %TempFolder%\*.*, 1 ;,1
{
    FolderSize += %A_LoopFileSizeMB%
}
FileMoveDir,%TempFolder%,%TempFolder% - %FolderSize% MB
}
 

Pick the root folder where the other folders are stored, and it'll do its thing. Remove the semicolon from the first Loop and you'll be able to rename the folders recursively - each folder inside the folder you pick, and the folders inside those, will be named accordingly to their total file size, all the way down. The folder you choose from the prompt won't have its name changed.