home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
eeedit22.zip
/
enhanced.zip
/
rebuild.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2001-04-15
|
3KB
|
77 lines
/* THIS IS NOT THE INSTALLATION UTILITY! */
/* */
/* Run only to repair desktop objects */
/* if the Enhanced E's are */
/* installed */
/* */
/* */
/* Desktop Object Repair */
/* Rebuilds Enhanced E Desktop object */
/* Run this from the editor's directory */
/* */
/* Prerequisites for the desktop object */
/* and this cmd file */
crlf ='0d0a'x
exe ='ee*.exe'
Title ='Enhanced E Editors'
/* Load RexxUtil DLL */
call RxFuncAdd 'SysLoadFuncs' , RexxUtil, 'SysLoadFuncs'
call SysLoadFuncs
Call SysCls
say crlf crlf
say 'This program is repairs the desktop objects for the'
say 'Enhanced E Editors. It is not the installation utility.'
say 'If you have not installed the Enhanced E with the'
say '[Install.exe] program the installation will likely fail.'||crlf
say 'Be sure you are running this from the '||Title||' directory.'||crlf crlf
say 'Press [Y] to continue or [Enter] to quit'||crlf
pull approval
if approval <> 'Y' then exit
say ''
/* Are we in the right program directory? */
say 'Locating '||exe||'...'||crlf
TestFor=directory()||'\'||exe
CALL SysFileTree TestFor,'List','FO'
if List.0 = 0 then do
say 'Please run this program from the same directory as the '||exe||' files'||crlf
say 'Exiting...'||crlf
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||crlf
else
say 'Object created for' EEETitle '.'||crlf