trigger cmd does not respect the waiting time of my batch file
-
When I run my batch file from my computer everything works the way it should, it waits the number of seconds before opening another program or web page, but the moment trigger cmd executes it it is as if it had no waiting time since All pages and programs run at the same time. any solution to this?
This is the code I am using@echo off timeout /t 2 /nobreak >nul start "" https://www.reddit.com/ timeout /t 2 /nobreak >nul start "" https://www.google.com/search?q=translate timeout /t 2 /nobreak >nul start "" https://www.youtube.com/ timeout /t 5 /nobreak >nul Start "" "C:\ProgramData\Ableton\Live 12 Suite\Program\Ableton Live 12 Suite.exe" quit
-
@levi-junco-0 Hello, again I think I found the solution and it really is quite simple.
All you have to do is add this before your address to your batch file once you have done this trigger cmd will respect your .bat file as is
This is how my code finally looked (this is not relevant since the problem is solved with code that goes before the address of the bat file)@echo off timeout /t 2 /nobreak >nul start "" https://www.reddit.com/ timeout /t 2 /nobreak >nul start "" https://www.google.com/search?q=translate timeout /t 2 /nobreak >nul start "" https://www.youtube.com/ timeout /t 5 /nobreak >nul Start "" "C:\ProgramData\Ableton\Live 12 Suite\Program\Ableton Live 12 Suite.exe" timeout /t 2 /nobreak >nul start spotify: echo done exit
I hope this is helpful to someone with a similar problem.
-
@levi-junco-0 You bloody legend thank you levi - this has been messing with me for hours.