Forum Home
Press F1
 
Thread ID: 135865 2013-12-20 08:56:00 File Ramdonisation DeSade (984) Press F1
Post ID Timestamp Content User
1363168 2013-12-22 00:29:00 www.howtogeek.com Agent_24 (57)
1363169 2013-12-22 00:51:00 Stick this in a text file named something.cmd in the same dir as your mp3's you want to rename.

setlocal enabledelayedexpansion
set x=10000
for /f "tokens=*" %%a in ('dir /b *.mp3') do (
set /a x=!x!+1
move %%a !x!_%%a
)

replace 'move' with 'echo' if you want to test it first.

edit: doh - that prepends sequential numbers - and they will still be in the same order .... :lol:
fred_fish (15241)
1363170 2013-12-22 01:34:00 This should do it

setlocal enabledelayedexpansion
for /f "tokens=*" %%a in ('dir /b *.mp3') do move %%a !random!_%%a
fred_fish (15241)
1 2