1.

Solve : Batch file - Add subfolders into file names?

Answer»

Hi, I have a FOLDER called "Classical Piano MIDIS", which consists of 1-level subfolders and midi files.

Here's what I want to have DONE, rename all of the files contained in "Classical Piano Midis\*subfolder*\" to contain the name of the subfolder and a dash at the beginning of the file name.  ("*subfolder* - ")

For example, I want "C:\Users\Owner\Documents\Classical Piano Midis\Bach\Minuet in G.mid" renamed to ""C:\Users\Owner\Documents\Classical Piano Midis\Bach\Bach - Minuet in G.mid".
And "C:\Users\Raymond\Documents\Classical Piano Midis\Chopin\Scherzo No.2, Opus.31.mid" renamed to ""C:\Users\Raymond\Documents\Classical Piano Midis\Chopin\Chopin - Scherzo No.2, Opus.31.mid"

Thanks.Edit:  I no longer need this ACTUALLY, a programmer friend ended up doing what I NEEDED to do to those files (in a method other than using a batch file)Rather easy to do in batch should you ever need the solution.



Discussion

No Comment Found