Sript pausing
Results 1 to 4 of 4

Thread: Sript pausing

  1. #1
    Join Date
    Jun 2002
    Location
    Ann Arbor MI
    Posts
    134

    Sript pausing

    In a script how can you insert a pause for X seconds between two commands?
    Thanks Andrew.

  2. #2
    Join Date
    Apr 2002
    Posts
    1,840
    If you are referring to VBS, it would be

    Wscript.Sleep 500 'time is in milliseconds

    For JS it would be

    Wscript.Sleep(500); 'time is in milliseconds

  3. #3
    Join Date
    Jun 2002
    Location
    Ann Arbor MI
    Posts
    134
    Scripting from a .bat file. I found the tool i was looking for on google, called wait.bat.
    Thanks andrew

  4. #4
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    Here's a DOS command that will pause for 10 seconds:
    • choice/c:./t:.,10/n "Pausing for 10 seconds ..."
    Note: You can change both those "10"'s to anything from "0" to "99".

    More info: http://www.vfrazee.com/ms-dos/6.22/help/choice.htm
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •