I use media player classic to play videos.
I can make a batch file to play a playlist, like this:
mpc.exe video1.avi video2.avi video3.avi ...
It works.
Now I would like to make a batch file that plays all videos in a folder sorted randomly.
Any idea?
Thanks
The code below assumes you are playing files from the current directory, and it assumes none of your .avi file names begin with
=. It wouldn’t take much to eliminate those limitations.If you have too many files in your folder, then eventually the command length will exceed the maximum allowed length of 8191 bytes.