home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
uptim100.zip
/
INSTALL.CMD
next >
Wrap
OS/2 REXX Batch file
|
1999-01-25
|
1KB
|
38 lines
/* INSTALL.CMD **** Install script for Uptime **************************/
call RxFuncAdd "SysLoadFuncs","RexxUtil","SysLoadFuncs"
call SysLoadFuncs
PGMNAME = "Uptime"
EXEFILE = "UPTIME.EXE"
say "This install program creates a """ || PGMNAME || """ program object"
say "(icon) on your desktop. Do you wish to proceed? (y/n)"
pull answer .
answer = substr(answer, 1,1)
if answer <> 'Y' then exit 1
/* Get the current directory */
curdir = directory()
/* Check for EXEFILE */
Call SysFileTree curdir || '\' || EXEFILE, file, 'F'
if file.0 = 0 then
do
say "Can not locate" EXEFILE "(Program file)"
exit 1
end
/* Create object */
if SysCreateObject("WPProgram", PGMNAME, "<WP_DESKTOP>",,
"EXENAME="curdir||'\'||EXEFILE||";"||,
"STARTUPDIR="curdir, "update") then
do
say PGMNAME "has been added to your desktop."
say "Double click on this icon to start the program."
end
else
say "Can not add" PGMNAME "to your desktop."
exit 0