Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sleep in dos

225 views
Skip to first unread message

sammy

unread,
Mar 4, 2000, 3:00:00 AM3/4/00
to
Can someone tell me whats the equivalent in dos for a sleep command in unix.

eg

sleep 10

Thanks in advance

Sammy

Peter Schultze

unread,
Mar 4, 2000, 3:00:00 AM3/4/00
to
sammy wrote:
>
> Can someone tell me whats the equivalent in dos for a sleep command in unix.
>
> eg
>
> sleep 10

you can use CHOICE with the Timeout-Switch

CHOICE /T:Y,10

Peter

--
Whenever you set out to do something,
something else must be done first.

Timo Salmi

unread,
Mar 4, 2000, 3:00:00 AM3/4/00
to
In article <Qh5w4.3275$vW....@news-server.bigpond.net.au>,

sammy <sama...@bigpond.net.au> wrote:
:Can someone tell me whats the equivalent in dos for a sleep command in unix.

FAQ:

44) How to pause in a batch for a preset number of seconds?
64) How can I write a "SLEEP" command to pause for a certain time?

166192 Feb 11 2000 ftp://garbo.uwasa.fi/pc/ts/tsbat60.zip
tsbat60.zip A collection of useful batch files and tricks, T.Salmi

All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:t...@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Timo's procmail tips at http://www.uwasa.fi/~ts/info/proctips.html

Outsider

unread,
Mar 4, 2000, 3:00:00 AM3/4/00
to
sammy wrote:
>
> Can someone tell me whats the equivalent in dos for a sleep command in unix.
>
> eg
>
> sleep 10
>
> Thanks in advance
>
> Sammy

A timed delay which can not be interfered with from the keyboard.
Substitute 5 with the desired number of seconds, up to 99.

TYPE nul |CHOICE.COM /N /CY /TY,5 >nul

--
Regards,
Outsider
MS-DOS 6.22, Windows for Workgroups 3.11, Netscape Navigator 4.08
"Don't overestimate the decency of the human race." -- H.L. Mencken

0 new messages