Reply to thread

I was just about to propose the same thing :)

Specially i have some problems with my .iso files since they dont all have the right labels (the name which pops up as the name of the drive when mounted) :(

but directory name is spot on right.


btw if the problem only is that the file dont match the dir name, u could write a fairly simple bat file which could rename files to folder name :) but alas this wont work for the .iso labels :(


anyone know of a program that can manipulate labels in existing .iso files?


a dirty ugly .bat file for renaming .avi files to folder name. Takes all folders in its root and renames files in them.

only 1 level of deepth though.. worked for my purpose...


C:. <----bat file here

├───Casino Royal

│   └───Sample

├───Children Of Men

│   └───SAMPLE

├───Deja Vu

│   └───Sample

├───Epic Movie

│   ├───Covers

│   └───Sample


will only rename files directly in movie folders (not in covers sample etc)


*-------------------


@echo off

SetLocal EnableDelayedExpansion

cls


dir /a:d /b >list.txt

for /F "delims=," %%a in (list.txt) do (

echo %%a

cd "%%a"

rename *.avi "%%a".avi

cd..

)

del list.txt

*-----------------------------------------


Top Bottom