home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
pwws113.zip
/
makeicon.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-25
|
3KB
|
102 lines
/*****************************************************/
/* MAKEICON.CMD for PlanetWide v1.13 OS/2 Web Server */
/* */
/* Creates WPS folder and associated icons */
/* required to support the software. */
/* */
/* (c)copyright 1997 Payne-Mennie Computing Services */
/* cepayne@uoguelph.ca */
/*****************************************************/
/* Load REXXUTIL */
call rxfuncadd 'sysloadfuncs', 'rexxutil', 'sysloadfuncs'
call sysloadfuncs
call SysCls
say
say
/*get program drive and path*/
parse source . . argv0 .
temp = reverse(argv0)
temp = substr(temp, pos('\', temp))
if length(temp) > 3 then temp = substr(temp, 2)
CurrentPath = reverse(temp)
SAY "Installing PlanetWide v1.13 WPS folder and Icons to the desktop... "
SAY
SAY
classname = 'WPFolder'
location = '<WP_DESKTOP>'
title = "PlanetWide^OS/2 Web Server"
icon = CurrentPath"planet.ico"
setup='OBJECTID=<PlanetWide>;ICONFILE 'icon';'
call charout , 'Building : 'title
result = SysCreateObject(classname, title, location, setup)
If result = 1 then call charout ,'... Object created! '
Else call charout ,'... Not created! Return code = 'result
call BldObj
SAY ' '
classname = 'WPProgram'
title="PlanetWide v1.13"
xe = CurrentPath"\webserv.exe"
location = '<PlanetWide>'
icon = CurrentPath"\planet.ico"
setup = 'PARAMETERS=;EXENAME='xe';STARTUPDIR='CurrentPath';ICONFILE 'icon';'
call BldObj
SAY
classname = 'WPProgram'
title="Webserv.Doc"
xe = "e.exe"
location = '<PlanetWide>'
icon = CurrentPath"\readme.ico"
setup = 'PARAMETERS='webserv.doc';EXENAME='xe';STARTUPDIR='CurrentPath';ICONFILE 'icon';'
call BldObj
SAY
classname = 'WPProgram'
title="Registration Application^Please Register!"
xe = CurrentPath"\register.exe"
location = '<PlanetWide>'
icon = CurrentPath"\register.ico"
setup = 'PARAMETERS=;EXENAME='xe';STARTUPDIR='CurrentPath';ICONFILE 'icon';'
call BldObj
SAY
say
say
say "Use the WPS object to start PlanetWide"
say
say
say "Thank you for your interest in the PlanetWide OS/2 Web Server software. "
say "Please view the WEBSERV.DOC to learn how to configure your server program."
say
say
say "Tech support:"
say "=-=-=-=-=-=-="
say
say " Email: cepayne@uoguelph.ca "
say " WWW: http://www.pr.uoguelph.ca/cpayne/planet.htm"
say
say
say " Please register your server software."
say " Thank you."
say
EXIT
BldObj:
call charout , 'Building : 'title
result = SysCreateObject(classname, title, location, setup)
If result = 1 then call charout ,'... Object created! '
Else call charout ,'... Not created! Return code = 'result
SAY ' '
RETURN