home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
SPIELE
/
TRIPL107
/
REGISTER.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-10-04
|
1KB
|
46 lines
/* Execute this program after you have copied all of the files */
/* in a subdirectory of your choice. */
/* This program will create an icon on the desktop and */
/* register the program for you. If you already have an icon */
/* for TRIPLES on the desktop, please delete the icon before */
/* calling this program. */
/* Please enter your name and the key exactly as on the */
/* letter that you got, because the values are casesensitive */
call RxFuncAdd "SysLoadFuncs","REXXUTIL","SysLoadFuncs"
call SysLoadFuncs
say " Triples for OS/2"
say ""
say "The installation program will create an icon for Triples 1.07 on the desktop"
say ""
say "Continue?"
say "(Y/N)"
PARSE PULL reply
if reply = "N" | reply = "n" then exit
title="Triples 1.07"
classname='WPProgram'
location='<WP_DESKTOP>'
curdir=directory()'\triples.exe'
say 'Please enter your name:'
parse pull name
say 'Please enter your key:'
pull key
result=SysCreateObject(classname,title,location,'PARAMETERS=-N 'name' -K 'key';PROGTYPE=PM;EXENAME='curdir'')
If result then
say "Icon for Triples 1.07 created..."
else do
say "ERROR : The objects have not been installed,due to an error."
say "POSSIBLE CAUSE : The objects already exist on the desktop."
say "ACTION : Remove the already existing objects and try again."
pull key
end