1.

Solve : .Bat File For Renaming Files That Are Allways Changing?

Answer» HI There

I Wanting To Undergo A Tricky Operation How To Rename Files Without Specifying

There Names   Example File 1 To 01.MP3 File 2 to 02.mp3

Using This .Bat  File For My Sonic 2 Mp3 tool


Any Help Will Be Greatly Appreciated Code: [Select]echo off
SET ext=mp3
setlocal ENABLEDELAYEDEXPANSION
set path2=C:\test
set a=1
dir /s %path2%.\*.%ext% /b >%path2%.\%ext%.dir
for /f "delims=" %%a in (%path2%.\%ext%.dir) do (
set b=!a!
if !a! lss 10 set b=0!b!
ren "%%a" !b!.%ext%
set /a a=!a!+1
)
del %path2%.\%ext%.dirC:\test is the folder of the mp3 files  That Has WORKED Thanks So Much


Discussion

No Comment Found