home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
VIRUS
/
I_M221.ZIP
/
IMPRINT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-02-09
|
3KB
|
83 lines
ECHO OFF
: IMPRINT.BAT is an aid to printing documentation files distributed
: with the INTEGRITY MASTER (IM) install files.
IF "%1"=="" goto help
IF %1==? goto help
IF NOT EXIST %1 GOTO IMPRINTtxt
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════
ECHO ║
ECHO ║ File "%1" will be printed (copied to PRN)
ECHO ║
ECHO ║ You may also wish to read this file on your screen; if so,
ECHO ║ just enter the command:
ECHO ║
ECHO ║ IMVIEW %1 (and hit ENTER)
ECHO ║
ECHO ╚═════════════════════════════════════════════════════════════════════
PAUSE Hit any key to start printing %1
CLS
COPY %1 PRN
GOTO END
:IMPRINTtxt
IF NOT EXIST %1.TXT GOTO IMPRINTdoc
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════
ECHO ║
ECHO ║ File "%1.TXT" will be printed (copied to PRN)
ECHO ║
ECHO ║ You may also wish to read this file on your screen; if so,
ECHO ║ just enter the command:
ECHO ║
ECHO ║ IMVIEW %1 (and hit ENTER)
ECHO ║
ECHO ╚═════════════════════════════════════════════════════════════════════
PAUSE Hit any key to start printing %1.TXT
CLS
COPY %1.TXT PRN
GOTO END
:IMPRINTdoc
IF NOT EXIST %1.DOC GOTO NotFound
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════
ECHO ║
ECHO ║ File "%1.DOC" will be printed (copied to PRN)
ECHO ║
ECHO ║ You may also wish to read this file on your screen; if so,
ECHO ║ just enter the command:
ECHO ║
ECHO ║ IMVIEW %1 (and hit ENTER)
ECHO ║
ECHO ╚═════════════════════════════════════════════════════════════════════
PAUSE Hit any key to start printing %1.DOC
CLS
COPY %1.DOC PRN
GOTO END
:NotFound
ECHO ╔═════════════════════════════════════════════════════════════════════
ECHO ║ File %1, %1.TXT or %1.DOC were not found.
ECHO ║
ECHO ║ Please locate the file you were trying to print. If that file is not
ECHO ║ in the current directory then enter: "IMPRINT \some\directory" where
ECHO ║ "\some\directory" is the location of that file.
ECHO ╚═════════════════════════════════════════════════════════════════════
ECHO .
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax: IMPRINT filename ║
ECHO ║ ║
ECHO ║ If filename is not found, IMPRINT will look for filename.TXT ║
ECHO ║ If filename.TXT is not found, IMPRINT will look for filename.DOC ║
ECHO ║ ║
ECHO ║ To print the install and routine use checklist for Integrity Master, ║
ECHO ║ enter the command: IMPRINT IMPROC ║
ECHO ║ ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ For example: ║
ECHO ║ If you wish to print the file "QUESTION.TXT" you can enter the command║
ECHO ║ "IMPRINT QUESTION" and the file "QUESTION.TXT" will be displayed, as ║
ECHO ║ long as a file named "QUESTION" (with no extension) does not exist ║
ECHO ║ in the current directory. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
:END