home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
lan
/
qrev1.arc
/
CHK.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-07-05
|
3KB
|
108 lines
echo off
c:
cd c:\batch
if exist c:\batch\down ren c:\batch\down up
if exist c:\batch\quit del c:\batch\quit
set N=
cd c:\
:top
cls
echo ********************************************************
echo ********* **************
echo ********* Waiting for batch process **************
echo ********* **************
echo ********************************************************
:loop
if exist c:\batch\Q1 goto IN_1
if exist c:\batch\Q2 goto IN_2
if exist c:\batch\Q3 goto IN_3
if exist c:\batch\quit goto QUIT
goto loop
:in_1
beep /f900 /d2
beep /f1200 /d2
beep /f1500 /d2
echo *************************************
echo Running process 1
type c:\batch\Q1
echo *************************************
: command /c c:\batch\READONLY.bat
echo Now running: > c:\batch\RQ1
type c:\batch\Q1 >> c:\batch\RQ1
: command /c c:\batch\READWRITE.bat
command /c c:\batch\in1.bat
: command /c c:\batch\READONLY.bat
del c:\batch\in1.bat
del c:\batch\Q1
del c:\batch\RQ1
: command /c c:\batch\READWRITE.bat
c:
cd \
net send jon Batch process number 1 is finished.
goto top
:in_2
beep /f900 /d2
beep /f1200 /d2
beep /f1500 /d2
echo *************************************
echo Running process 2
type c:\batch\Q2
echo *************************************
: command /c c:\batch\READONLY.bat
echo Now running: > c:\batch\RQ2
type c:\batch\Q2 >> c:\batch\RQ2
: command /c c:\batch\READWRITE.bat
command /c c:\batch\in2.bat
: command /c c:\batch\READONLY.bat
del c:\batch\in2.bat
del c:\batch\Q2
del c:\batch\RQ2
: command /c c:\batch\READWRITE.bat
c:
cd \
net send jon Batch process number 2 is finished.
goto top
:in_3
beep /f900 /d2
beep /f1200 /d2
beep /f1500 /d2
echo *************************************
echo Running process 3
type c:\batch\Q3
echo *************************************
: command /c c:\batch\READONLY.bat
echo Now running: > c:\batch\RQ3
type c:\batch\Q3 >> c:\batch\RQ3
: command /c c:\batch\READWRITE.bat
command /c c:\batch\in3.bat
: command /c c:\batch\READONLY.bat
del c:\batch\in3.bat
del c:\batch\Q3
del c:\batch\RQ3
: command /c c:\batch\READWRITE.bat
c:
cd \
net send jon Batch process number 3 is finished.
goto top
:quit
cls
echo Quitting ....
beep /f1500 /d2
beep /f1200 /d2
beep /f900 /d2
c:
cd c:\batch
del quit.
ren up down
c:\batch\quit.bat