home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
i
/
inst1.zip
/
SETUP.BAT
< prev
Wrap
DOS Batch File
|
1992-10-01
|
2KB
|
56 lines
echo off
cls
if "%1"=="" goto FIRSTRUN
goto START
This is an example program to run after INSTALL is done. To
run this batch file, put the following line in INSTALL.DAT:
.DOS setup %1
Note how this is used in the "remove disk" message, below.
**********************
The ".DOS xxx" Keyword
**********************
Above, the "%1"=="" is a check for ANY parameter.
If none, the "remove disk" message skipped. Since only your
INSTALL program passes a parameter, the user can re-run this
batch program later, without the "remove disk" message.
NOTES
-----
1. The ".DOS xxx" keyword in INSTALL.DAT is not limited to
batch files; it could be an EXE or COM program. It works
exactly like the user had typed the command at the DOS
prompt; ie: "C:\mydir\>setup x".
2. Some of the "echo " commands below appear to be empty
lines, but are not. The invisible character, ASCII #255, is
used after "echo " for blank lines. To create this special
character, hold down the ALT key, press 255 (two, five,
five) on the numeric keypad at your right.
:START
echo
echo
echo ▐▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌
echo ▐ Please remove the INSTALL Diskette from drive %1 ▌
echo ▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌
echo
echo
pause
:FIRSTRUN
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ Running program... ║
echo ╚═══════════════════════════════════════════════════════════════╝
rem dothis /setup
rem dothat
rem dounique
:DONE
echo Whew! Finally finished; have a nice day.