home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
midi
/
mppdemo
/
mppdemo3.exe
/
MPPRINT.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-05-21
|
4KB
|
165 lines
echo off
cls
IF %1. == A:. goto DRIVEOK
IF %1. == B:. goto DRIVEOK
IF %1. == C:. goto DRIVEOK
IF %1. == D:. goto DRIVEOK
IF %1. == E:. goto DRIVEOK
IF %1. == F:. goto DRIVEOK
IF %1. == a:. goto DRIVEOK
IF %1. == b:. goto DRIVEOK
IF %1. == c:. goto DRIVEOK
IF %1. == d:. goto DRIVEOK
IF %1. == e:. goto DRIVEOK
IF %1. == f:. goto DRIVEOK
goto SYNERR
:DRIVEOK
del %1\MPPRT.DAT > nul
cls
echo SAMPLE PRINTOUT for MusicPrinter Plus
echo.
echo TYPE TO SELECT
echo ---- ---------
echo 1 Epson 9-pin (or compatible)
echo Epson 24-pin, or IBM Proprinter XL24 in Alt. Graphics Mode (sw 7 on)
echo 2 Large
echo 3 Small
echo 4 Short
echo Canon Bubble Jet BJ-130e
echo 1 9-pin emulation Alt. Graphics Mode must be disabled (sw 2-4 off)
echo 24-pin emulation Alternate Graphics Mode required (sw 2-4 on)
echo 2 Large
echo 3 Small
echo 4 Short
echo 5 360 dots per inch
echo 6 Canon Laser Beam Printer LBP-8 II or LPB-8 III
echo 7 Hewlett-Packard LaserJet or DeskJet
echo.
echo 0 Exit without printing.
getkey
cls
echo Creating temporary work file (MPPRT.DAT) on disk in drive %1
echo.
IF ERRORLEVEL 8 goto EIGHT
IF ERRORLEVEL 7 goto SEVEN
IF ERRORLEVEL 6 goto SIX
IF ERRORLEVEL 5 goto FIVE
IF ERRORLEVEL 4 goto FOUR
IF ERRORLEVEL 3 goto THREE
IF ERRORLEVEL 2 goto TWO
IF ERRORLEVEL 1 goto ONE
cls
goto EXIT
:EIGHT
MPPRINT
:SEVEN
DSK 666823 %1
if errorlevel 1 goto DSKERR7
HP /e%1\
goto :PRINT
:SIX
DSK 564179 %1
if ERRORLEVEL 1 goto DSKERR6
LBP /e%1\
goto :PRINT
:FIVE
DSK 1212874 %1
if errorlevel 1 goto DSKERR5
BJ130 /e%1\
goto :PRINT
:FOUR
DSK 276228 %1
if errorlevel 1 goto DSKERR4
24SHORT /e%1\
goto :PRINT
:THREE
DSK 283224 %1
if errorlevel 1 goto DSKERR3
24SMALL /e%1\
goto :PRINT
:TWO
DSK 219054 %1
if errorlevel 1 goto DSKERR2
24LARGE /e%1\
goto :PRINT
:ONE
DSK 184443 %1
if errorlevel 1 goto DSKERR1
EP9 /e%1\
goto :PRINT
:PRINT
cls
echo Sending page to printer. Please wait.
echo.
copy %1\MPPRT.DAT prn /B
echo Deleting temporary work file.
del %1\MPPRT.DAT
cls
goto EXIT
:DSKERR7
cls
echo Small problem here. 666,823
goto DSKERR
:DSKERR6
cls
echo Small problem here. 564,179
goto DSKERR
:DSKERR5
cls
echo Small problem here. 1,212,874
goto DSKERR
:DSKERR4
cls
echo Small problem here. 276,228
goto DSKERR
:DSKERR3
cls
echo Small problem here. 283,224
goto DSKERR
:DSKERR2
cls
echo Small problem here. 219,054
goto DSKERR
:DSKERR1
cls
echo Small problem here. 184,443
:DSKERR
echo bytes of FREE DISK SPACE are required to create
echo a sample for the printer you have selected.
echo.
echo Please make sure that at least this much space is
echo available on the disk you will specify as the work disk.
echo.
echo To specify the disk in drive C: as the work disk, enter the command
echo.
echo MPPRINT C:
echo.
echo (Consequently, this print demo will not work on a 360k single drive system
echo because sufficient disk space will not be available.)
echo.
echo (Note - Disk space is required only for printing by this demo.
echo It is not a requirement of the fully-functioning
echo MusicPrinter Plus program.)
echo.
echo.
goto EXIT
:SYNERR
echo.
echo The demo printing program MPPRINT requires
echo a work disk with several hundred kilobytes of FREE SPACE.
echo.
echo Please execute MPPRINT again, and specify a work disk.
echo.
echo For example, to specify drive C: as the work disk, enter the command
echo.
echo MPPRINT C:
echo.
echo (Consequently, this print demo will not work on a 360k single drive system
echo because sufficient disk space will not be available.)
echo.
echo (Note - Disk space is required only for printing by this demo.
echo It is not a requirement of the fully-functioning
echo MusicPrinter Plus program.)
echo.
:EXIT