home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
rmd200.exe
/
INSTALL.BTM
(
.txt
)
next >
Wrap
4DOS Compressed Batch-To-Memory File
|
1994-02-01
|
4KB
|
225 lines
@*setdos /i+echo
@*echo off
*setdos /i+setlocal
*SETLOCAL
*setdos /i+unalias
*unalias *
setdos /i+alias
setdos /i+set
setdos /i+iff
setdos /i+do
setdos /i+quit
setdos /i+text
setdos /i+rem
alias gd=mkdir /s
alias #=rem
set version=2.00
# ########## START ###########
on break (echo Installation terminated^quit)
CLS
text
THANK YOU FOR TRYING
endtext
echo RMD version %version
text
(C) 1994, Richard F. Schaaf
This program is freely distributable provided that all files in
this archive are distributed together. Please keep in mind that the
author is the exclusive copyright holder. You may use this program
as you seem fit but you are not allowed to make modifications to it
without the explicit consent from the author.
The author cannot be held responsible for damage (including lost
files) incurred, either direct or indirect, by using this program.
The author also does not guarantee the program will work as indicated
in the documentation although every effort has been made to make sure
it does. If you find an instance where it does not work as documented,
please report it to the author at the address stated in "rmd.doc".
Press any key to start the installation program.
endtext
inkey %%tmp
set continue=Y
iff "%@UPPER[%@SUBSTR[%COMSPEC,7,-8]]"="4DOS.COM" then
set directory=%@LOWER[%@PATH[%COMSPEC]]
else
set directory=c:\4dos\
endiff
set install86=N
set install286=N
set install386=N
set installdocs=Y
iff "%_cpu"="86" .or. "%_cpu"="186" .or. "%_cpu"="200" then
set cpu=86
endiff
iff "%_cpu"="286" then
set cpu=286
endiff
iff "%_cpu" GE "386" then
set cpu=386
endiff
set install%cpu=Y
do while "%continue"="Y"
set change=N
do while "%change"="N"
cls
echo Please enter the destination directory:
input /E %%directory
iff "%@SUBSTR[%directory,0,-1]" NE "\" then
set directory=%directory\
endiff
iff not isdir %directory then
set fname=%@SUBSTR[%directory,0,%@EVAL[%@LEN[%directory]-1]]
iff exist then
beep
echo %fname is a file!
echo Press any key to re-enter
inkey %%dummy
else
inkey /K"yn" Directory %directory does not exist. Create? [YN] %%change
set change=%@UPPER[%change]
iff "%@UPPER[%change]"="Y" then
md /s %directory
endiff
endiff
else
set change=Y
endiff
enddo
set selection=1
do while "%selection" GE "1" .and. "%selection" LE "4" then
cls
text
Please indicate which versions of rmd you want to be installed:
endtext
echos `1. [`
iff "%install86"="Y" then
echos X
else
echos ` `
endiff
echo ] rmd86 (8088/8086/80186/V20/V30)
echos `2. [`
iff "%install286"="Y" then
echos X
else
echos ` `
endiff
echo ] rmd286 (80286)
echos `3. [`
iff "%install386"="Y" then
echos X
else
echos ` `
endiff
echo ] rmd386 (80386/80486/80586)
echos `4. [`
iff "%installdocs"="Y" then
echos X
else
echos ` `
endiff
echo ] documentation
text
endtext
inkey /K"1234DI" Enter Selection: 1, 2, 3, 4, D=change dir, I=Install %%selection
set selection=%@UPPER[%selection]
set continue=N
iff "%selection"="1" then
set install86=Y
set install286=N
set install386=N
endiff
iff "%selection"="2" then
set install86=N
set install286=Y
set install386=N
endiff
iff "%selection"="3" then
set install86=N
set install286=N
set install386=Y
endiff
iff "%selection"="4" then
iff "%installdocs"="Y" then
set installdocs=N
else
set installdocs=Y
endiff
endiff
iff "%selection"="D" then
set continue=Y
endiff
iff "%selection"="I" then
iff "%[install%cpu]"="N" then
echo rmd may not work on your computer if you don't install rmd%cpu
inkey /K"yn" Select it? [YN] %%select
iff "%@UPPER[%select]"="Y" then
set install86=N
set install286=N
set install386=N
set install%cpu=Y
set selection=1
endiff
endiff
endiff
enddo
enddo
copy rmd_inst.1 %directory%rmd.btm
iff "%installdocs"="Y" then
copy rmd.doc %directory%rmd.doc
endiff
iff "%install86"="Y" then
copy rmd_inst.2 %directory%rmd_c.com
endiff
iff "%install286"="Y" then
copy rmd_inst.3 %directory%rmd_c.com
endiff
iff "%install386"="Y" then
copy rmd_inst.4 %directory%rmd_c.com
endiff
cls
text
Installation finished.
endtext
echo Please make sure that "%@SUBSTR[%directory,0,%@EVAL[%@LEN[%directory]-1]]" is in your path
echo or define an alias "rmd=%directory%rmd.btm"