Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to pause batch file for time limit then resume  (Read 3522 times)

0 Members and 1 Guest are viewing this topic.

fat_basterd21

    Topic Starter


    Apprentice

    Thanked: 15
  • Experience: Experienced
  • OS: Windows Vista
how to pause batch file for time limit then resume
« on: July 27, 2006, 02:55:56 PM »
the subject pritty much explains it. i just need to know how to pause a batch file after a cammand and then resume on its own after a given amount of time.
CAPS LOCK IS CRUISE-CONTROL FOR COOL!!!

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: how to pause batch file for time limit then re
« Reply #1 on: July 27, 2006, 03:22:56 PM »
Quote
the subject pritty much explains it

Not really, as there are different techniques on different OSes and you failed to mention yours. For Win9x (incl. ME) you can use the choice command with the /t switch (default value after nn second; max 99)

CHOICE is not available on shipped copies of NT machines, so you can use PING (ex. ping -n 21 should be close to 20 seconds).

 8-)

Note: PING is the better of the two as it does not tie up the CPU with wasted cycles.





The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

mala_un

  • Guest
Re: how to pause batch file for time limit then re
« Reply #2 on: July 27, 2006, 09:14:38 PM »
for win 98 (ver 4.10.2222) and below
choice /ty,10 /c:yn Do you want to reboot now? %1

this will wait 10 seconds or else system will choose yes and reboot...

i hope i can help you..

fat_basterd21

    Topic Starter


    Apprentice

    Thanked: 15
  • Experience: Experienced
  • OS: Windows Vista
Re: how to pause batch file for time limit then re
« Reply #3 on: July 28, 2006, 03:34:19 PM »
MY opologies I was under the impression batch was all the same as dos. Shows what I know... I use windows Xp home and professional... I was actually wanting more than 99 sec but i will try this... thank everyone that posts... This Site Made me start using Forums...
CAPS LOCK IS CRUISE-CONTROL FOR COOL!!!

fat_basterd21

    Topic Starter


    Apprentice

    Thanked: 15
  • Experience: Experienced
  • OS: Windows Vista
Re: how to pause batch file for time limit then re
« Reply #4 on: July 28, 2006, 03:34:44 PM »
Because ITs Sooo Good
CAPS LOCK IS CRUISE-CONTROL FOR COOL!!!