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

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

    Scheduled Pinned Locked Moved Windows
    3 Posts 2 Posters 1.6k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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
          • RussR Russ referenced this topic on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post