home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
wr07060a.zip
/
US7060B2.DSK
/
LCU
/
LCU.ZIP
/
GETOSCID.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-04-28
|
2KB
|
62 lines
@ECHO OFF
REM GETOSCID 2.02
SETLOCAL
IF %1.==. ECHO GETOSCID source (target)
IF %1.==. GOTO END
REM
REM CHECK SOURCE DIRECTORY
REM
IF EXIST %1\DISK_2\UNPACK.EXE GOTO GETTAR
COPY %1\DISK_2\UNPACK.EXE
GOTO END
:GETTAR
SET PATH=%1;%PATH%
REM
REM GET TARGET DIRECTORY
REM
SET GC_TARGET=
IF %2.==. SET GC_TARGET=.
IF NOT %2.==. SET GC_TARGET=%2
IF %GC_TARGET%.==.. GOTO GETUNPACK
SET GC_MKDIR=
DIR %GC_TARGET%\*.* >> NUL 2>>&1
IF ERRORLEVEL 1 SET GC_MKDIR=YES
IF %GC_MKDIR%.==YES. ECHO MD %GC_TARGET%
IF %GC_MKDIR%.==YES. MD %GC_TARGET%
IF ERRORLEVEL 1 GOTO END
:GETUNPACK
ECHO COPY %1\DISK_2\UNPACK*.EXE %GC_TARGET%
COPY %1\DISK_2\UNPACK*.EXE %GC_TARGET% > NUL
IF ERRORLEVEL 1 GOTO END
REM
REM GET THE CID PACK FILE
REM
ECHO %1\DISK_2\UNPACK %1\DISK_*\CID %GC_TARGET%
FOR %%I IN (3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25) DO IF EXIST %1\DISK_%%I\CID %1\DISK_2\UNPACK %1\DISK_%%I\CID %GC_TARGET% >> NUL 2>>&1
REM
REM GET THE REQUIRED PACK FILE FOR RSPINST.EXE
REM
ECHO %1\DISK_2\UNPACK %1\DISK_*\REQUIRED %GC_TARGET% /N:RSPINST.EXE
FOR %%I IN (3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25) DO IF EXIST %1\DISK_%%I\REQUIRED %1\DISK_2\UNPACK %1\DISK_%%I\REQUIRED %GC_TARGET% /N:RSPINST.EXE >> NUL 2>>&1
ECHO %1\DISK_2\UNPACK %1\DISK_*\BUNDLE %GC_TARGET% /N:RSPINST.EXE
FOR %%I IN (3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25) DO IF EXIST %1\DISK_%%I\REQUIRED %1\DISK_2\UNPACK %1\DISK_%%I\REQUIRED %GC_TARGET% /N:RSPINST.EXE >> NUL 2>>&1
REM
REM GET THE REQUIRED PACK FILE FOR SAMPLE.RSP
REM
ECHO %1\DISK_2\UNPACK %1\DISK_*\REQUIRED %GC_TARGET% /N:SAMPLE.RSP
FOR %%I IN (3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25) DO IF EXIST %1\DISK_%%I\REQUIRED %1\DISK_2\UNPACK %1\DISK_%%I\REQUIRED %GC_TARGET% /N:SAMPLE.RSP >> NUL 2>>&1
ECHO %1\DISK_2\UNPACK %1\DISK_*\BUNDLE %GC_TARGET% /N:SAMPLE.RSP
FOR %%I IN (3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25) DO IF EXIST %1\DISK_%%I\REQUIRED %1\DISK_2\UNPACK %1\DISK_%%I\REQUIRED %GC_TARGET% /N:SAMPLE.RSP >> NUL 2>>&1
REM
REM ENSURE THAT THE FILES WERE UNPACKED
REM
IF NOT EXIST %GC_TARGET%\SAMPLE.RSP COPY %GC_TARGET%\SAMPLE.RSP
IF NOT EXIST %GC_TARGET%\RSPINST.EXE COPY %GC_TARGET%\RSPINST.EXE
IF NOT EXIST %GC_TARGET%\SEINST.EXE COPY %GC_TARGET%\SEINST.EXE
:END
ENDLOCAL