How to run all files inside a folder

1

I have a folder with several audio files and I want the cmd code to run all of them, one at a time. Anyone have an idea if this is possible and if so, how do you do it?

    
asked by anonymous 05.08.2014 / 13:03

2 answers

1

Removing from the SO at How to run multiple. BAT files within a .BAT file

I think it would be something like this:

FOR %x IN (*.mp3) DO call player-mp3.exe "%x"

where you would have to have in the same folder a player-mp3.exe, which plays the music passed as a parameter.

But I do not know if for will wait for one song to finish to start the next one, I think it runs all at the same time

    
05.08.2014 / 13:32
1

Create a batch with the following content (assuming you are using the 32-bit version):

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --playlist-autostart --loop --fullscreen --playlist-tree %1

How to use:

> cria_playlist.bat c:\path\para\as\minhas\musicas
    
05.08.2014 / 15:07