Tuesday, March 24, 2020

Launching a playlist in VLC with one click

I should note I have a Windows 7 system. Not sure how this would work with Windows 10, I am sure it's harder and more restrictive.

Some time ago, the "play all" feature in file explorer stopped working correctly. I have all my media files associated with VLC and when I clicked on "Play all", it would open the songs in the folder with VLC.  Cool. Something happened and Windows started insisting on using Media Player instead, even though Media Player is not set as a default program on my system for anything. I could not find a solution to that issue (everyone said to set my default programs, but that's set!) so I got creative.

I created a sweet little batch program.

1) Open Notepad as administrator
2) In the Notepad document, type:

@echo off
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --playlist-autostart --loop  --playlist-tree "D:\Fun\Music\favorites\"

The second path (D:\Fun\Music\favorites\) should be edited to be the path to where you keep your music.

3) Save the file on your Desktop

Whenever you feel like launching your favorite playlist, double click on the file. Voila.

If you want to edit the file and not launch VLC, then right click and select "edit". The file will open in Notepad.