tldm-universe/Ardent/UV/nls.cmd
2024-09-09 17:51:08 -04:00

61 lines
1.5 KiB
Batchfile
Executable File

@echo off
rem ****************************************************************************
rem *
rem * add_prog: load a program into shared memory
rem *
rem * Module %M% Version %I% Date %H%
rem *
rem * (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
rem * This is unpublished proprietary source code of Ardent Software Inc.
rem * The copyright notice above does not evidence any actual or intended
rem * publication of such source code.
rem *
rem ****************************************************************************
rem path to uv\bin to be provided by install program
rem as is system32 directory
rem
rem %1 is uvhome directory
rem %2 is windows system32 directory
rem %3 is name of console code page
set uvhome=d:\uv\uv
if not %1X == X set uvhome=%1
set uvbin=%uvhome%\bin
if not exist %uvhome%\nul goto end
if not exist %uvbin%\nul goto end
call cd /d %uvhome%
set exec=%systemroot%\system32
if not %2X == X set exec=%2
if not exist %exec%\nul goto end
set exec=%exec%\cmd.exe /C
rem turn off NLS while we do all this ?
echo Configuring NLS in %uvhome% ...
call %exec% "%uvbin%\uvread VOC LOGIN > nls.login.sv"
call %exec% %uvbin%\uvdelete VOC LOGIN
call %exec% %uvbin%\loadfile nls.uvinst.u VOC -noconvert
call %exec% %uvbin%\uvsh NLS.UV.INST %3
call %exec% %uvbin%\uvdelete VOC NLS.UV.INST
call %exec% %uvbin%\loadfile nls.LOGIN.sv VOC
call %exec% del /Q nls.LOGIN.sv
echo Reconfiguring UniVerse ...
call %exec% %uvbin%\uvregen
:end
rem end of file
10/14/98 23801 SAP Change copyrights.