I work with HDR photography. What I want to do is take all files in a folder (of images) and create a separate folder for every set of 5 files (images). Is there a way to do this in the Bulk Rename Utility?
Thanks!
function padLeft(nr, n, str){
return Array(n-String(nr).length+1).join(str||'0')+nr;
}
var groupevery = 5;
var pad = 3;
var num = ((counter+groupevery-1) / groupevery) >> 0;
newName = padLeft(num,pad) + '\\' + name;
Admin wrote:The option Allow Using '\' in Renaming Criteria for Creation of New Folders needs to be enabled in the renaming menu.
The var groupevery sets the number of files to group in each subfolder.
The var pad sets how many 0 to pad the subfolder name with.
newName = "2" + newName;
Admin wrote:newName = "2" + newName;
added as the last line, should do it.