|This sounds like a cool project. There is a random environment variable in windows %random%, it generates a number between 0 and 32767, and I'm trying to think of a way to use that to call a random file. I guess you could rename the files 0.mp3 to 49.mp3, and then do an if not exist %random%.mp3. If it doesn't exist have it go back to the top of the if exist, if it does exist, have it copy the .mp3 and then timeout 60. |
if not exist %file%.mp3 goto start
copy /y "c:\original_directory\%file%.mp3 c:\new_directory\%file%.mp3
I haven't tested this, and I have a feeling it will be kinda slow, so you probably won't get a result every 60 seconds reliably. There are too many numbers in that variable. There's probably a better way. I'll think about it some more and post what I come up with.