TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. cheesewiz_man
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    cheesewiz_man

    @cheesewiz_man

    0
    Reputation
    2
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    cheesewiz_man Unfollow Follow

    Latest posts made by cheesewiz_man

    • RE: (Windows) Pausing for 5 seconds during batch script?

      Ah. "ping -n 6 localhost < nul" works.

      posted in General Discussion
      C
      cheesewiz_man
    • (Windows) Pausing for 5 seconds during batch script?

      Having a dickens of a time enforcing a pause in the batch file.

      This:

      @echo off
      taskkill /F /FI "WindowTitle eq OldTask*" /T

      ping -n6 127.0.0.1 > nul 2> nul
      ping -n6 127.0.0.1
      timeout /T 5 /NOBREAK

      start "Starting New Task..." "C:\newtask.exe"

      Works fine (pauses 15 seconds) when I launch directly from the windows GUI, but when I trigger it, it goes straight from the taskkill to the start without pausing.

      ping and timeout are both stock windows apps (no cygwin or anything present).

      Any thoughts?

      posted in General Discussion
      C
      cheesewiz_man