home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: InfoMgt
/
InfoMgt.zip
/
rolwps10.zip
/
createrolo.cmd
next >
Wrap
OS/2 REXX Batch file
|
1994-05-26
|
3KB
|
108 lines
/*
* Build the RoloWPS/2 folder and the associated icons.
*/
address CMD
'echo on'
call RXFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs
call setlocal
/*
* The target directory is the parm we were passed... make sure
* the directory exists...
*/
folder_title = 'RoloWPS/2'
target_dir = directory()
target_dir = directory( target_dir )
/*
* Create the main folder object
*/
say 'Building Workplace Shell RoloWPS/2 Objects...'
classname = 'WPFolder'
title = 'RoloWPS/2'
location = '<WP_DESKTOP>'
iconparm = 'ICONFILE=' || target_dir || '\rolofold.ico;'
setup = 'OBJECTID=<RoloWPS_FOLDER>;' || iconparm
call SysCreateObject classname, title, location, setup, 'r'
/*
* Create the Readme program object
*/
classname = 'WPProgram'
title = 'Read Me First'
location = '<RoloWPS_FOLDER>'
setup = 'EXENAME=epm.exe;' ||,
'PROGTYPE=PM;' ||,
'PARAMETERS=' || target_dir || '\readme.1st;' ||,
'STARTUPDIR=' || target_dir || ';'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPProgram'
title = 'Order Form'
location = '<RoloWPS_FOLDER>'
setup = 'EXENAME=e.exe;' ||,
'PROGTYPE=PM;' ||,
'PARAMETERS=' || target_dir || '\order.frm;' ||,
'STARTUPDIR=' || target_dir || ';'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPProgram'
title = 'RoloWPS/2 Help'
location = '<RoloWPS_FOLDER>'
setup = 'EXENAME=view.exe;' ||,
'PROGTYPE=PM;' ||,
'PARAMETERS=' || target_dir || '\rolowps2.inf;' ||,
'STARTUPDIR=' || target_dir || ';'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPShadow'
title = 'Icons'
location = '<RoloWPS_FOLDER>'
setup = 'SHADOWID=' || target_dir || '\icons;OBJECTID=<rolowps_Icons>;'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPProgram'
title = 'RoloWPS File'
location = '<RoloWPS_FOLDER>'
setup = 'EXENAME=' || target_dir || '\rolowps2.exe;' ||,
'PROGTYPE=PM;' ||,
'PARAMETERS=' || target_dir || '\rolodex.row;' ||,
'STARTUPDIR=' || target_dir || ';'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPShadow'
title = 'RoloWPS/2 File'
location = '<RoloWPS_FOLDER>'
setup = 'SHADOWID=' || target_dir || '\rolodex.row;' ||,
'OBJECTID=<Rolodex/2 Card File>;'
call SysCreateObject classname, title, location, setup, 'r'
classname = 'WPProgram'
title = 'RoloWPS/2'
location = '<RoloWPS_FOLDER>'
setup = 'EXENAME=' || target_dir || '\rolowps2.exe;' ||,
'PROGTYPE=PM;' ||,
'STARTUPDIR=' || target_dir || ';' ||,
'ASSOCFILTER=*.ROW;'
call SysCreateObject classname, title, location, setup, 'r'
exit
/****************************** End of Program ****************************/