NLSMSG displays National Language Support (NLS) messages from logon scripts at run-time, allowing a single SMS logon server to support clients of multiple languages. NLSMSG was created to replace echo and choice with something that is language-independent and localizable.
x86
NLSMSG16.EXE, for 16-bit systems
NLSMSG32.EXE, for 32-bit systems
NLSMSGO2.EXE, for OS/2 systems
These files can be found in
site.srv\maincfg.box\client.src\platform.bin
nlsmsg message_ID [/f file_name] [/m default_message] [/c choices [/t c,nn]] [/n NT_lang_ID] [/w Win_lang_ID] [/d DOS_country_code] [/p path] [/v]
Note Usually, only message_ID, /m, /c, and /t are used. In this case, NLSMSG looks for NLSRES.INI in the directory containing NLSMSG*.EXE. NLSRES.INI specifies which resource DLL to use for the current language. That DLL is opened and the string corresponding to message_ID is retrieved and printed to the screen.
The /n, /w, and /d options override the default language. NLSMSG attempts to determine the current language setting automatically, so these options are usually not needed.
message_ID
The message ID of a National Language Support (NLS) string. message_ID refers to the string table identifier in a resource-only DLL. By default, NLSMSG uses NLS_LS.DLL from the appropriate language subdirectory; for example, x86.bin\00000409\NLS_LS.DLL.
/f file_name
Specifies a DLL file to search for the message specified by message_ID. This option allows a different DLL to be used instead of the default: NLS_LS.DLL, which might be useful if you want to make your own language-independent scripts.
/m default_message
Specifies a message to use if there's an error finding the message specified by message_ID.
/c choices
Specifies allowable user-response keys, such as Y or N. (This option behaves identically to /c for the choice command.)
/t c,nn
Specifies a default choice, c, after nn seconds with no user response. (This option behaves identically to /t for the choice command.)
/n NT_lang_ID
Specifies a Windows NT language ID to use; for example, U.S. English is 0x0409.
/w Win_lang_ID
Specifies a Windows language ID to use; for example, U.S. English is ENU.
/d DOS_country_code
Specifies a DOS country code to use; for example, USA is 1.
/p path
Specifies a path to NLS files that overrides the default location, which is the same directory as the one containing NLSMSG.EXE.
/v
Verbose mode. More output is displayed on the screen.
/?
Provides a usage statement.