The Forum is up for sale: XeNTaX Forum looking for new owner

batch file that copies folder structure

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 658 times

batch file that copies folder structure

Post by AlphaTwentyThree »

Hi coders, I hope that I'm posting in the right forum here. If not, just move it, admin. ;)
I'm using batch files quite often to automatize some processes, but I'm still really unexperienced. As I know that there are coders here that have worked with batch files way longer and are experienced, I thought, I'd kindly ask for help here if someone could post a little script, that does the following:
- move all files of a downward folder structure into the directory the script is started
- rename each file with its file path, replacing "/" with "~" and taking the location of the script as root
The folder structure can be really deep, so it's best to keep the above order to avoid names with more than 256 characters.
If it's easier, just take the full path - deleting the parts I don't need is easy.
I'd be very thankful if someone could post such a batch here!
Thanks for your help! :)
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
Post Reply