The VG Resource

Full Version: A program which grabs files, throws them together and renames them
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You mean something that'd change a file structure like this

Code:
/folder1/sample0
/folder1/sample1
/folder1/subfolder/sample0
/folder1/subfolder/sample1
/folder2/sample0
/folder2/sample1
/folder2/subfolder/sample0
/folder2/subfolder/sample1

to something like this?

Code:
/folder1_sample0
/folder1_sample1
/folder1_subfolder_sample0
/folder1_subfolder_sample1
/folder2_sample0
/folder2_sample1
/folder2_subfolder_sample0
/folder2_subfolder_sample1


I don't know of anything that'd do it, but it shouldn't be too hard to make one.
yes, that would be cool.
unFolder.

Just drag&drop the folder containing those subfolders into the program and it will move all files within subfolders into the folder itself.
Wow, awesome, it works fabulous =D

Thank you very much =)
So wait I don't quite understand, how would it fix conflicting file names if I wanted them in one folder...?
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! ;-)
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).
you could also use http://www.advancedrenamer.com/

which is a great program
(11-30-2012, 02:44 PM)Mighty Jetaku Wrote: [ -> ]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).

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.
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~