home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
winstall.zip
/
WARP2FUL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-05-06
|
5KB
|
125 lines
/************************************************************/
/* REXX - WIN-OS/2 Installation Utility for OS/2 Warp v3 */
/* David J. Looney 19 November 1994 */
/* Windows is a Trademark of Microsoft Corporation */
/* WIN-OS/2, OS/2, & OS/2 Warp v3 are Trademarks of IBM */
/* */
/* This utility is distributed free into the public domain. */
/* No warranty is made as the performance or suitability of */
/* this code for user purposes, and no liability for damage */
/* to data, equipment, loss of revenue or impairment of */
/* physical or emotional health due to use of this program */
/* is assumed. Use at your own risk. */
/* */
/* This program should only be used by those holding valid */
/* IBM OS/2 2.10 or 2.11 AND OS/2 Warp v3 licenses. Note */
/* that 'UPGRADE' licenses may exclude concurrent use. */
/************************************************************/
'@echo OFF'
/* Load Utility Functions */
Call RxFuncAdd 'SysLoadFuncs','REXXUTIL','SysLoadFuncs';
Call SysLoadFuncs;
/* Initialize Global Variables */
OS2DRV='C';
INSDRV='A';
/* Main Program Logic */
Call IntroScreen
Call GetParameters
Call PatchLevel
Say "SYSLEVEL.OS2 successfully patched !"
EXIT
/* End Main Program Logic */
IntroScreen: PROCEDURE;
Call SysCls
Say ""
Say " Warp v3 to Warp Full-Pack (TM) Preparation Utility."
Say ""
Say " ╔══════════════╗"
Say " ╔═══╣ Warp2Ful 0.9 ╠═══════════════════════════════════════════╗"
Say " ║ ╚══════════════╝ ║"
Say " ║ This utility will write information from your 2.1 Instal- ║"
Say " ║ lation diskette and OS/2 2.1 Disk #1 into the corresponding ║"
Say " ║ files of your Warp v3 + 2.1x WIN-OS/2 system installation. ║"
Say " ║ to allow installation of the OS/2 3.0 with WIN-OS/2 over ║"
Say " ║ your WARP+2.1x WIN-OS/2 installation. ║"
Say " ║ ║"
Say " ║ This has been tested only on a Warp v3 CD-ROM system upon ║"
Say " ║ which OS/2 2.1x WIN-OS/2 was installed by WINSTALL. This is ║"
Say " ║ NOT supported by IBM. Use entirely at your own risk. The ║"
Say " ║ author is in no way responsible for the performance of the ║"
Say " ║ program, suitability for any intended purpose, or any dam- ║"
Say " ║ age to any users data or system. BACKUP YOUR SYSTEM BEFORE ║"
Say " ║ USE ! ║"
Say " ║ ║"
Say " ║ David J. Looney [Team OS/2] 75246.3364@compuserve.com ║"
Say " ║ DJLOON@DELPHI.COM ║"
Say " ║ ║"
Say " ╚══════════════════════════════════════════════════════════════╝"
'pause'
RETURN;
GetParameters:PROCEDURE EXPOSE OS2DRV INSDRV;
Call SysCls
Say ""
Say ""
Result=CHAROUT( ,"Enter the drive letter on which OS/2 Warp v3 is installed: ", );
PULL ANS .
OS2DRV=SubStr(ANS,1,1);
Result=CHAROUT( ,"Enter the disk drive letter where your 2.1 diskettes can be found: ", );
PULL ANS .
INSDRV=SubStr(ANS,1,1);
RETURN;
PatchLevel: PROCEDURE EXPOSE OS2DRV INSDRV;
WarpLevelFile=OS2DRV||":\OS2\INSTALL\SYSLEVEL.OS2"
BackLevelFile=OS2DRV||":\OS2\INSTALL\WARPLEV.TMP"
OS21LevelFile=INSDRV||":\SYSLEVEL.OS2"
'copy '||WarpLevelFile||" "||BackLevelFile
IF rc<>0 THEN SIGNAL EXIT_FILE_ERR_1
Result= STREAM( WarpLevelFile, 'c' , 'OPEN')
IF Result<>"READY:" THEN SIGNAL EXIT_FILE_ERR_2
Say "Insert OS/2 2.1 Diskette #1 into Drive "||INSDRV||":"
'pause'
Result=STREAM( OS21LevelFile, 'c', 'OPEN')
IF Result<>"READY:" THEN SIGNAL EXIT_FILE_ERR_2
/* OS Major and Minor Version */
DO I=41 TO 42
Nibble= CHARIN(OS21LevelFile, I, 1)
CALL CHAROUT WarpLevelFile, Nibble, I
END
/* OS Syslevel Info */
DO I=45 TO 90
Nibble= CHARIN(OS21LevelFile, I, 1)
CALL CHAROUT WarpLevelFile, Nibble, I
END
/* OS ID Number */
DO I=141 TO 151
Nibble= CHARIN(OS21LevelFile, I, 1)
CALL CHAROUT WarpLevelFile, Nibble, I
END
CALL STREAM WarpLevelFile , 'c' , 'CLOSE'
CALL STREAM OS21LevelFile , 'c' , 'CLOSE'
RETURN;
EXIT_FILE_ERR_1:
Say "Error making backup copy of SYSLEVEL.OS2 file !"
EXIT
EXIT_FILE_ERR_2:
Say "Error opening Warp or 2.1 SYSLEVEL.OS2 files !"
EXIT