Request: program that can collapse folder structures

Programming related discussions related to game research
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Request: program that can collapse folder structures

Post by AlphaTwentyThree »

Hello there!

As many of you may know, I do streamed music rips of video games in my free time. I write scripts and I know how to use all the little tools. What I'm in need of is a little tool that I guess can easily be programmed. It only has to do some automatic file operations and needs a context menu implementation in Windows. I need to collapse folder structures. This means that I need the program to be able to:
1. move all files in a folder structure to the base folder where the program is called (right-clicked)
2. all the files need to be renamed so that "\" in the path is replaced by "~", starting at the base folder
Example: we have the following folder structure

D:\temp\game3\audio\music\level1\action.mp3
D:\temp\game3\audio\music\level1\quiet.mp3
D:\temp\game3\audio\music\level1\suspense.mp3
D:\temp\game3\audio\music\level2\boss_fight.mp3
D:\temp\game3\audio\sfx\jingle1.mp3
D:\temp\game3\audio\sfx\lose.mp3
D:\temp\game3\audio\sfx\win.mp3

The programm is executed in the folder "audio". The result are the following files in that folder audio:

music~level1~action.mp3
music~level1~quiet.mp3
music~level1~suspense.mp3
music~level2~boss_fight.mp3
sfx~jingle1.mp3
sfx~lose.mp3
sfx~win.mp3

as well as an empty or deleted folder structure.
Can somebody write something like this? I'd be extremely thankful!!

Regards, Timo