Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

randomize usb-stick audio for players that won't shuffle

Jul
272
6
Tired of bluetooth speakers that won't play the contents of a usb stick in shuffle order? Why not prefix each song with a random 4 digit number?

fix the problem in TCC by randomizing the filesort via prepending a 4-digit random number:

Code:
set filemask_audio=*.mp3;*.wav;*.rm;*.voc;*.au;*.mid;*.stm;*.mod;*.vqf;*.ogg;*.mpc;*.wma;*.mp4;*.flac;*.snd;*.aac;*.opus;*.ac3

    for /a:-d /h %audiofile in (%filemask_audio%) echo mv /Ns "%audiofile" "%@FORMAT[04,%@RANDOM[0,9999]]_%@REREPLACE[[0-9]*[\-_]+ *,,%audiofile]"


looks kinda like this [without the color/formatting]:
1717605847260.png
 
My fancier looking version is on my github (look for batfile starting with "renumber")
1717614959432.png
 
Back
Top