I'm trying to rename all file names in a subdirectory to a random number. This is what I tried, but it does not work. For some reason % num% is empty in the new file name,
What do I have to do?
for %%A in (*.mp3) DO ( set /A num=%RANDOM%*100/32768+1 ren "%%A" %num%.mp3 ) pause