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
    163
    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.
    • levi junco 0L
      levi junco 0
      last edited by

      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 0L 1 Reply Last reply Reply Quote 0
      • levi junco 0L
        levi junco 0 @levi junco 0
        last edited by

        @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.

        Matthew PoppellM 1 Reply Last reply Reply Quote 0
        • Matthew PoppellM
          Matthew Poppell @levi junco 0
          last edited by

          @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