home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ipfede.zip
/
MAKEIPFE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-09-14
|
2KB
|
94 lines
@echo off
if %1A == A GOTO CMDERROR
if %1 == A GOTO OK
if %1 == B GOTO OK
if %1 == a GOTO OK
if %1 == b GOTO OK
GOTO CMDERROR
:OK
echo Making IPF Editor Demo Disk...
label %1: < ipfelbl.dat > NUL
echo Copying files...
copy INSTALL.CFG %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy IPFEDSMP.CAR %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy IPFEDEMO.CAR %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy INSTALL.INI %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy INSTALL.EXE %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy XCHAPT3.CAR %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy COMPRESS.DLL %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy BITMAP.DLL %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy INSTALL.HL_ %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy INSTALL.BMP %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy README.INF %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy README.TXT %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
copy XCHAPT2.CAR %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
echo Still copying files...
copy IPFEBIN.CAR %1:\ > NUL
IF ERRORLEVEL 1 GOTO COPYERROR
echo Adjusting Disk %1 Attributes
attrib +h %1:\*.*
IF ERRORLEVEL 1 GOTO ATTRERROR
attrib -h %1:\INSTALL.EXE
IF ERRORLEVEL 1 GOTO ATTRERROR
attrib -h %1:\README.*
IF ERRORLEVEL 1 GOTO ATTRERROR
echo You have now created a demonstration diskette that can be installed onto
echo your system using the INSTALL program located on the floppy drive %1:
echo See the README.TXT and README.INF files for additional information.
echo Thanks for your interest in the IPF Editor.
echo To order the IPF Editor call 1-800-IPF-7622.
GOTO end
:ATTRERROR
echo An error was detected trying to adjust file attributes on file in
echo drive %1. The floppy in that drive may have an error. Insert a new disk
echo and retry the command.
GOTO end
:COPYERROR
echo An error was detected trying to copy a file to drive %1. Make sure
echo the floppy in that drive is blank, formatted, and error free. Then
echo retry the command.
GOTO end
:CMDERROR
echo You must specify the 1.44MB floppy drive to use as the program disk.
echo For example:
echo MAKEIPFE A
echo would create an IPF Editor Demonstration Diskette on the floppy
echo placed in drive A:.
:END