BRU Logo
Bulk Rename Utility

JavaScript Assistant

Generated JavaScript

Copy and paste into Bulk Rename Utility

// Count files in the current folder (excluding hidden/system by default)
var fileCount = countFilesInFolder();

// Build the new folder name by appending the count in parentheses
// Example: if name was "MyPhotos" and there are 25 files, it becomes "MyPhotos (25)"
newName = name + " (" + fileCount + ")";