How to open multiple folders in a specific order using batch file? Windows 10
You can use timeout
command in middle of every command. Use timeout /t 2
, if you want timeout to stay quiet, timeout /t 2 >nul
. It should work. Just make your code like this:
@echo off
start explorer "Folder 1 Path"
timeout /t 2 >nul
start explorer "Folder 2 Path"
timeout /t 2 >nul
start explorer "Folder 3 Path"
timeout /t 2 >nul
start explorer "Folder 4 Path"
Thanks
Using a for
loop listing in order would be...
@echo off
for %%i in (
"%UserProfile%\Desktop"
"%UserProfile%\Documents"
"%UserProfile%\Downloads"
"%UserProfile%\Pictures"
)do start "" "%%~i"