home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
enh_e130.zip
/
rebuild.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-12-09
|
2KB
|
64 lines
/* THIS IS NOT THE INSTALLATION UTILITY! */
/* */
/* Run only to repair desktop objects */
/* if the Enhanced E's are already */
/* installed */
/* */
/* */
/* Desktop Object Repair */
/* Rebuilds Enhanced E Desktop object */
/* Run this from the editor's directory */
/* */
/* Load RexxUtil DLL */
call RxFuncAdd 'SysLoadFuncs' , RexxUtil, 'SysLoadFuncs'
call SysLoadFuncs
Call SysCls
say 'This program is repairs the desktop objects for the Enhanced E Editors'
say 'it is not the installation utility.'
say
say 'If you have not installed the Enhanced E with the '"'Install.exe'"' program'
say 'the installation will likely fail.'
/* Is the Enhanced E in this directory? */
say 'Locating eee.exe...'
if Stream('eee.exe','C','Query Exists') = '' then do
say 'Please run this program from the same directory as the eee.exe file'
say ''
say 'Exiting...'
exit
end
/* Create the desktop objects */
EETitle ='Enhanced E Editor'
EESetup ='OBJECTID=<EE>;'||,
'EXENAME=' || Directory() || '\EE.EXE;'||,
'STARTUPDIR=' || Directory()';'||,
'ASSOCTYPE=Plain Text,OS/2 Command File,DOS Command File,,;'||,
'ASSOCFILTER=*.DOC,*.TXT,,;'||,
'PROGTYPE=PM;'
EEETitle ='Enhanced EE Editor'
EEESetup ='OBJECTID=<EEE>;'||,
'EXENAME=' || Directory() || '\EEE.EXE;'||,
'STARTUPDIR=' || Directory()';'||,
'ASSOCTYPE=Plain Text,OS/2 Command File,DOS Command File,,;'||,
'ASSOCFILTER=*.DOC,*.TXT,,;'||,
'PROGTYPE=PM;'
call SysCreateObject "WPProgram", EETitle, "<WP_DESKTOP>", EESetup, 'Update'
/* Check if the WPS object was created */
if rc = 0 then
say 'Object creation for 'EETitle ' failed! rc='rc
else
say 'Object created for' EETitle '.'
call SysCreateObject "WPProgram", EEETitle, "<WP_DESKTOP>", EEESetup, 'Update'
/* Check if the WPS object was created */
if rc = 0 then
say 'Object creation for 'EEETitle ' failed! rc='rc
else
say 'Object created for' EEETitle '.'