home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 June
/
VPR9706B.ISO
/
nsos2
/
setjp.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1996-12-17
|
2KB
|
35 lines
/* It is a small patch program to enable Netscape Navigator for */
/* OS/2 2.02 use Japanese. */
/* How to use: */
/* SETJP */
/* 1.You must invoke and quit Netscape before you use this patch */
/* to prepare NETSCAPE.INI */
options 'EXMODE'
if RxFuncQuery('SysLoadFuncs') then do
call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs
end /* do */
epfisini = filespec('D', value('user_ini', , 'os2environment')) || '\os2\system\epfis.ini'
call SysIni epfisini, 'ALL:', 'A.'
appl = ''
do i = 1 to a.0
if pos('NETSCAPE', translate(a.i)) > 0 then do
appl = a.i
leave
end /* do */
end /* do */
if appl = '' then call errorandexit 'ネットスケープナビゲーターがインストールされていません。'
filepath = strip(translate(SysIni(epfisini, appl, 'FilePath'), ' ', '00'x))
if filepath = 'ERROR:' then errorandexit 'ネットスケープナビゲーターがインストールされていません。'
netscapeini = filepath || '\netscape.ini'
call SysIni netscapeini, 'INTL', 'Font1', 'Shift_JIS,MINCHO Proportional,12,MINCHO,10,932,932' || '00'x
call SysIni netscapeini, 'Intl', 'AcceptLang', 'Japanese [ja]' || '00'x
call SysIni netscapeini, 'Intl', 'URL Charset', 'iso-2022-jp' || '00'x
call SysIni netscapeini, 'Intl', 'AutoSelect', 'iso-2022-jp' || '00'x
exit
errorandexit: procedure
parse arg msg
say msg
exit