A program which grabs files, throws them together and renames them - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: Archive (https://www.vg-resource.com/forum-65.html) +--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html) +---- Forum: Other Stuff (https://www.vg-resource.com/forum-6.html) +----- Forum: Questions, Info, and Tutorials (https://www.vg-resource.com/forum-89.html) +----- Thread: A program which grabs files, throws them together and renames them (/thread-22006.html) |
A program which grabs files, throws them together and renames them - Davy Jones - 11-30-2012 In this case, I downloaded zip with many many folders and subfolders, but in each folder are just a few files. No big deal, I could throw them together, but they share identical file names: - folder 1: sample0, sample1, sample2, sample3... - folder 2: sample0, sample1, sample2, sample3... - folder 3: sample0, sample1, sample2, sample3... So I have to rename each file and this gets annoying. Is there a program which solves this? I mean, it should grab every file from these folders, put it in just ONE folder and rename everything. RE: A program which grabs files, throws them together and renames them - Previous - 11-30-2012 You mean something that'd change a file structure like this Code: /folder1/sample0 to something like this? Code: /folder1_sample0 I don't know of anything that'd do it, but it shouldn't be too hard to make one. RE: A program which grabs files, throws them together and renames them - Davy Jones - 11-30-2012 yes, that would be cool. RE: A program which grabs files, throws them together and renames them - Previous - 11-30-2012 unFolder. Just drag&drop the folder containing those subfolders into the program and it will move all files within subfolders into the folder itself. RE: A program which grabs files, throws them together and renames them - Davy Jones - 11-30-2012 Wow, awesome, it works fabulous =D Thank you very much =) RE: A program which grabs files, throws them together and renames them - Garamonde - 11-30-2012 So wait I don't quite understand, how would it fix conflicting file names if I wanted them in one folder...? RE: A program which grabs files, throws them together and renames them - Previous - 11-30-2012 As you can see in my first reply here, it adds the directory structure to the file name (with underscores instead of directory markers \). In fact, it works this way: Your base folder (the one you want the files to be in, instead of in subfolders inside that one) is "C:\...\basefolder\", so the program collects files in there. Let's say we have a file "C:\...\basefolder\subfolder\file.bin". First, we cut away the base folder and get "subfolder\file.bin", then we replace every "\" with "_" to achieve "subfolder_file.bin", then we add the base folder at the front so we get "C:\...\basefolder\subfolder_file.bin". Finally, we move the file (it's somewhat like renaming it). Now, the file "file.bin" from the subfolder "subfolder" is named "subfolder_file.bin" and located within the base folder. So unless you had, for example, a file named "subfolder_file.bin" within the base folder itself to begin with, everything should be fine. I could add a check whether a file with the new name already exists in the base folder and then add a number to the end. However, unless someone could need that, I won't do the work! ;-) RE: A program which grabs files, throws them together and renames them - Garamonde - 11-30-2012 Oh okay I see, that could be helpful~ Now if only Tinke could extract multiple .WAV files... It'd make DS ripping the ultimate in easiness (next to mobile phone of course). RE: A program which grabs files, throws them together and renames them - Lexou Duck - 11-30-2012 you could also use http://www.advancedrenamer.com/ which is a great program RE: A program which grabs files, throws them together and renames them - puggsoy - 11-30-2012 (11-30-2012, 02:44 PM)Mighty Jetaku Wrote: Oh okay I see, that could be helpful~ Unless they're in an SDAT, you can export multiple sound files to WAV by selecting the folder with the files and hitting R. And if they are in an SDAT, you can still extract multiple in their original format the same way and then convert them all with VGSC. RE: A program which grabs files, throws them together and renames them - Garamonde - 11-30-2012 Oh... IDK if I ever tried hitting R while having the folder selected... I'm going to try that next time (if I don't forget again, I'm pretty sure I asked about this before...). Thanks puggsoy~ |