home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
cntdwn1.zip
/
CNTDWN.DOC
next >
Wrap
Text File
|
1993-02-16
|
1KB
|
47 lines
Instructions for COUNTDOWN v 1.00
---------------------------------
When the program is run, it starts a countdows from n minutes -
3 minutes is defalt. If the program is NOT interupted by user by that
time (any key will interrupt), ERRORLEVEL 1 will be returned to DOS.
If it is interrupted by one of the keys 1,2,3,4,5,6,7,8,9,0 the
ERRRORLEVEL will be set to that value. Any other key, will return
the value 0.
This can be used in *.BAT files, also AUTOEXEC.BAT
EXAMPLE OF USE IN AUTOEXEC.BAT
@echo off
PATH C:\DOS;E:\;C:\;C:\4DOS;F:\DOS.60;F:\BATFILER;G:\WIN31;
c:\dos\smartdrv.exe 3072 1024
alias/r c:\4dos\aliases
...
...
...
c:\cntdwn.exe
if errorlevel=1 goto windows
goto end
:windows
g:\win31\win
:end
This example will cause windows to start up after 3 minutes if NO key
has been pressed.
CNTDWN.EXE has the parameter /? and /n where n is a number from 1 to 10
If a number is given, the countdown-time will be changed to n minutes.
cntdwn /1
will cause the program to wait for 1 minute before termination.
----------------------------------------------
Written by
Alexander Ringdal
N-8027 BODOE
NORWAY
E-mail : alexan_r@babbage.hsn.no
----------------------------------------------