How to automatically open a list of folders

Create a .bat file called like defdirs.bat containing:

@echo off
timeout 1
start "" "%userprofile%\Music"
timeout 1
start "" "C:\Python27"

Note: a timeout is required if you want to open them in a specific order and not randomly

Note2: in this case, it will open 2 folders specified in the 2nd argument of the start instruction

…And then run the newly created defdirs.bat!

Note3: some people use explorer instead of start, but it will create a new explorer.exe in that case


This site uses Just the Docs, a documentation theme for Jekyll.