home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
o
/
os2_util.zip
/
ATI100.EXE
/
INSTALL.CMD
next >
Wrap
OS/2 REXX Batch file
|
1992-09-01
|
2KB
|
65 lines
@echo off
rem Argument error checking
if %1. == . goto noparms
if %2. == . goto noparms
if not %3. == . goto doinstall
rem Restart with default destination directory
%1\install %1 %2 \ARCADIA
goto end
:noparms
echo . .
echo . Arcadia Workplace Companion Installation Batch File .
echo . .
echo . .
echo . Syntax: install [source drive] [destination drive] [directory].
echo . .
echo . Example: install a: c: mydir .
echo . .
echo . NOTES: If no directory is specified, \ARCADIA is the default .
echo . The target directory is automatically created. .
echo . .
pause
goto end
:doinstall
echo . Arcadia Workplace Companion Installation Batch File .
echo . .
echo . .
echo . Installing Clock/Calender from %1 to %2 .
echo . .
echo . .
:check1
if exist %1\wpc.zip goto check2
echo .
echo . Insert Arcadia Clock/Calendar disk into drive %1
pause
goto check1
:check2
if exist %2%3 goto check3
goto unzip
:check3
echo . Destination directory already exists. You must either remove
echo . this directory and re-run INSTALL or re-run INSTALL with a new
echo . destination directory.
pause
goto end
:unzip
%2
cd \
md %3
%1pkunzip -o -d %1wpc.zip %2%3
echo . .
echo . For detailed instructions on how to insert the .
echo . Arcadia Clock/Calendar into the Workplace Shell: .
echo . View the READ.ME file on the installation diskette .
:end
echo on