|(I've combed through several posts here and found things that almost fit, but don't quite do this idea. I thought to ask experts here first before I try to patch work bits I've found. Hopefully the subject title will help others in the future).|
I have a long list of directories with files of various types inside of them. Some folders and files have spaces. I'd like to find a way to add the folder name to the file name and move it up the directory tree. For example:
c:/sync/programming cc/menu 01.doc ...to... c:/sync/programming cc - menu 01.doc
It's not critical that the new files have spaces, but it helps to break up potentially long names. Could this be a variable depth process -- something that would reach into sub-directories as well? New files would appear at the directory the batch file was run from.
This would be something used frequently. A separate mobile program I use can only import files, which blasts out the directory structure I have on my PC. However, if the file name also had the directory(s) name in it, I can quickly recreate the directory structure with the internal album feature they have.
Thanks for any direction or suggestions!