home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
PWWS110
/
MAKEICON.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-09-07
|
3KB
|
93 lines
/*****************************************************/
/* MAKEICON.CMD for PlanetWide v1.10 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.10 WPS Icon 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.10"
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 DESKTOP object to start PlanetWide"
say
say
say "Thank you for your interest in our Web Server software. See the WEBSERV.DOC"
say "for information on how to configure your server program."
say
say "Please register your server software."
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