home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
autorn12.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-01-26
|
1KB
|
42 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 AUTORUN on the desktop, please delete the icon before */
/* calling this program. */
call RxFuncAdd "SysLoadFuncs","REXXUTIL","SysLoadFuncs"
call SysLoadFuncs
say " AUTORUN for OS/2"
say ""
say "The installation program will create an icon for AUTORUN 1.2"
say "on the desktop"
say "Continue?"
say "(Y/N)"
PARSE PULL reply
if reply = "N" | reply = "n" then exit
title="Autorun 1.2"
classname='WPProgram'
location='<WP_DESKTOP>'
curdir=directory()'\autorun.exe'
say 'Please enter the letter of your CDROM drive:'
parse pull cdrom
result=SysCreateObject(classname,title,location,'PARAMETERS=-D:'cdrom' ;PROGTYPE=PM;EXENAME='curdir'')
if result then
say "Icon for AUTORUN 1.2 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."
end