Users browsing this thread: 2 Guest(s)
A program which grabs files, throws them together and renames them
#1
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.
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by:
#2
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.
Thanked by:
#3
yes, that would be cool.
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by:
#4
unFolder.

Just drag&drop the folder containing those subfolders into the program and it will move all files within subfolders into the folder itself.
Thanked by: puggsoy, SmashBroPlusB
#5
Wow, awesome, it works fabulous =D

Thank you very much =)
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by:
#6
So wait I don't quite understand, how would it fix conflicting file names if I wanted them in one folder...?
[Image: sweet-capn-cakes-deltarune.gif]
Thanked by:
#7
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! ;-)
Thanked by: Garamonde, puggsoy
#8
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).
[Image: sweet-capn-cakes-deltarune.gif]
Thanked by:
#9
you could also use http://www.advancedrenamer.com/

which is a great program
[Image: E3DU8rS.png]
Reference
♥ ♥ ♥ LOVE ♥ ♥ ♥
Omega ; Phant Mmkay ; Baegal ; Gorsal ; Drakocat ; Chaoxys ; TomGuyCott ; Chris2balls ; Mighty Jetters ; Blueblur97 ; NICKtendo DS ;
Kachua (Secret Santa) ; and some more that i need to locate, save and link onto here
Thanked by: Tellis
#10
(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.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Thanked by: Garamonde
#11
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~
[Image: sweet-capn-cakes-deltarune.gif]
Thanked by: puggsoy


Forum Jump: