Batch file with a bug
Hello,
I have saved the addresses of sites that feature pieces of music. I would like to listen to them and watch them one after another. I created a batch file but there is a bug. The first 3 pieces start one after another but for a few seconds. Only the fourth is watched in full before starting again. Here is the batch file:
@ echo off
start "" "https://www.foezoeiotzepo/"
timeout /t 5 /nobreak >nul
start "" "https://www.eztrotropitpoitr/"
timeout t/5 >nul
start "" "https://www.fjfhhjkhjhkjhkjfd/"
timeout /t 5 /nobreak >nul
start "" "https://www.ffdksjdkjskljflsdj/"
timeout /t 5 /nobreak >nul
exit
1 answer
-
Moderator
Hello,
Rather than music on web pages, you should use local files; it should be easier to chain them.
Start has an option /wait which allows you to wait for the launched application to finish. But a web page in a browser does not close by itself.
You then need to determine the length of each track and put this duration in seconds, 2m30: timeout /t 150