home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 1999 April
/
cd24-www.iso
/
prog
/
os2
/
connex
/
connex15.exe
/
_CONNEX.EXE
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-11-17
|
2KB
|
72 lines
/* Set up a CONNEX for OS/2 icon */
call rxfuncadd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs
ThisDir = DIRECTORY()
IF STREAM('connex.exe', 'c', 'query exists') = "" then do
SAY "ERROR: required file not found. Change directories"
SAY " to the Connexion Collection directory before"
SAY " running this installation utility."
SAY ""
SAY "Hit any key..."
userin = SysGetKey()
EXIT
END
IF STREAM('connex.htm', 'c', 'query exists') = "" then do
'REN SAMPLE.HTM CONNEX.HTM'
end
else do
SAY "A Connexions file (CONNEX.HTM) has been detected."
SAY "Do you wish to replace this file with the installation sample file?"
SAY "Present Connexions file will be renamed CONNEX.OLD."
SAY "Hit 'Y' ***ONLY*** if you wish to replace your file with the"
SAY "distribution sample file, otherwise hit any other key."
If TRANSLATE( SysGetKey() ) = 'Y' then do
'ERASE CONNEX.OLD'
'REN CONNEX.HTM CONNEX.OLD'
'REN SAMPLE.HTM CONNEX.HTM'
end
end
CLS
SAY "This utility will now create a Connexion Collection Folder"
SAY "on your desktop. "
SAY ""
SAY "Hit 'Y' to proceed, or any other key to quit..."
If TRANSLATE( SysGetKey() ) <> 'Y' then exit
call SysCreateObject 'WPFolder',,
'Connexion Collection',,
'<WP_DESKTOP>',,
'OBJECTID=<CONNEXFLDR>',,
'REPLACE:'
MyLine1="EXENAME="||ThisDir||"\CONNEX.EXE;"
MyLine2="STARTUPDIR="ThisDir";"
MyLine3="OBJECTID=<CONNEX>;"
MyLine3="HELPLIBRARY=CONNEX.HLP;HELPPANEL=10000;"
call SysCreateObject 'WPProgram',,
'Connexion Collection',,
'<CONNEXFLDR>',,
MyLine1||MyLine2||MyLine3||MyLine4,,
'REPLACE:'
MyLine1="EXENAME=VIEW.EXE;"
MyLine2="PARAMETERS="ThisDir"\CONNEX.INF;"
MyLine3="OBJECTID=<CONNEXINFO>;"
call SysCreateObject 'WPProgram',,
'Connexion Collection User Manual',,
'<CONNEXFLDR>',,
MyLine1||MyLine2||MyLine3,,
'REPLACE:'
'ERASE _CONNEX.EXE'
EXIT