home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
02
/
batsong.bat
< prev
next >
Wrap
DOS Batch File
|
1989-10-30
|
2KB
|
59 lines
@ECHO OFF
SET b=BATCHMAN
REM Set the following line to "%b% CLS 40h" for a red background
%b% CLS 10h
%b% CURSORTYPE 32,0
REM -------- Make a lovely border
%b% WINDOW 1,1,80,8,0Ch,=
%b% WINDOW 2,4,74,6,4Fh,=
%b% WINDOW 2,2,2,6,4Fh,-
%b% WINDOW 2,78,2,6,4Fh,-
%b% WINDOW 3,5,72,4,0Fh
REM ---------- Play the BATCHMAN Theme Song
%b% SETCURSOR 3,6
%b% CECHO C 0Fh,DaDa DaDa DaDa DaDa DaDa DaDa DaDa DaDa
%b% BEEP 659,2;659,2;622,2;622,2;587,2;587,2;622,2;622,1
%b% BEEP 659,2;659,2;622,2;622,2;587,2;587,2;622,2;622,1
%b% CECHO 8Eh,{B * A * T * C * H * M * A * N}
%b% BEEP 988,5;988,15
%b% SETCURSOR 4,6
%b% CECHO C 0Fh,DaDa DaDa DaDa DaDa DaDa DaDa DaDa DaDa
%b% BEEP 880,2;880,2;831,2;831,2;784,2;784,2;831,2;831,1
%b% BEEP 880,2;880,2;831,2;831,2;784,2;784,2;831,2;831,1
%b% CECHO 8Eh,{B * A * T * C * H * M * A * N}
%b% BEEP 1319,5;1319,15
%b% SETCURSOR 5,6
%b% CECHO C 0Fh,DaDa DaDa DaDa DaDa DaDa DaDa DaDa DaDa
%b% BEEP 659,2;659,2;622,2;622,2;587,2;587,2;622,2;622,1
%b% BEEP 659,2;659,2;622,2;622,2;587,2;587,2;622,2;622,1
%b% CECHO 8Eh,{B * A * T * C * H * M * A * N}
%b% BEEP 988,5;988,15
%b% SETCURSOR 6,6
%b% CECHO C 0Fh,DaDa DaDa DaDa DaDa DaDa DaDa DaDa DaDa
%b% BEEP 988,2;988,2;1047,2;1047,2;1109,2;1109,2;1047,2;1047,1
%b% BEEP 988,2;988,2;1047,2;1047,2;1109,2;1109,2;1245,2;1245,1
%b% CECHO 8Eh,{B * A * T * C * H * M * A * N}
%b% BEEP 1319,5;1319,20
REM ---------- Create a moving "POW!" box
%b% SETLOOP 7
SET op=8
SET pl=7
:loop
FOR %%v IN (1 2 3 4 5 6 7) DO IF ERRORLEVEL %%v SET pl=%%v
%b% WINDOW 1%pl%,%pl%0,6,3,17h,-
%b% SETCURSOR 1%op%,%pl%1
%b% CECHO C 17h,POW!
%b% BEEP 120,1;115,1;120,1;115,1
%b% WINDOW 1%pl%,%pl%0,6,3,40h
SET op=%pl%
%b% DECLOOP
IF ERRORLEVEL 1 GOTO loop
FOR %%v IN (pl op) DO SET %%v=
%b% WINDOW 1,1,80,8,1Eh,=
%b% WINDOW 2,3,76,6,0Eh
%b% SETCURSOR 4,20
%b% CECHO C 8EH,* * * B * A * T * C * H * M * A * N * * *
%b% SETCURSOR 9,1
%b% CURSORTYPE
SET b=