• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

trigger cmd does not respect the waiting time of my batch file

Windows
2
3
185
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    levi junco 0
    last edited by May 20, 2024, 6:43 PM

    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
    
    
    L 1 Reply Last reply May 20, 2024, 7:22 PM Reply Quote 0
    • L
      levi junco 0 @levi junco 0
      last edited by May 20, 2024, 7:22 PM

      @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
      Captura de pantalla 2024-05-20 131911.png
      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.

      M 1 Reply Last reply Jul 8, 2024, 12:26 PM Reply Quote 0
      • M
        Matthew Poppell @levi junco 0
        last edited by Jul 8, 2024, 12:26 PM

        @levi-junco-0 You bloody legend thank you levi - this has been messing with me for hours.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post