Append Sub Folders to Filenames

Post any Bulk Rename Command support requirements here. Open to all registered users.

Append Sub Folders to Filenames

Postby spinway32 » Wed May 13, 2009 3:09 pm

I have successfully used the /apendfolder comand to one folder but need to have execute in all subfolders:

ie: I have a folder called mikes with 20 subfolders

c:\mikes\12345
c:\mikes\12346
c:\mikes\12347
etc....

I want each sub folder to append to the filenames contained within so the output would be as follows:

c:\mikes\12345 would then contain files c:\mikes\12345aaaaa.1, c:\mikes\12345bbbbb then c:\mikes\123456aaaaa.1, c:\mikes\12346bbbb.1 and so on.

Thanks in advance for any help.

Jason
spinway32
 
Posts: 1
Joined: Wed May 13, 2009 3:01 pm

Re: Append Sub Folders to Filenames

Postby GMA » Thu May 14, 2009 7:49 am

Hi, Jason:
This is what you need:

BRC32.EXE /DIR:C:\mikes /NOFOLDERS /RECURSIVE /APPENDFOLDER:P::1 /EXECUTE

As always, I recommend creating a test enviroment first (I already did that myself, but you should do it too anyway), before going for the real files.
NOTE: This operation applies to all levels of subfolders. This means that it will append the parent folder name to any files in "c:\mikes\xxxxx", but also to any files in "c:\mikes\xxxxx\subf1", "c:\mikes\xxxxx\subf1\subf2", etc.). Also, it won't change any folder names, only file names (thanks to the "/NOFOLDERS" command).
Cheers,

Gabriel.
GMA
 
Posts: 91
Joined: Sun Dec 02, 2007 1:30 pm
Location: Argentina


Return to BRC Support