NTVDM issue, changing code page


  1. Posts : 36
    Windows 7
       #1

    NTVDM issue, changing code page


    Until Windows XP, NTVDM supported many code pages, but in Windows 7, NTVDM supports only 437(English) code page. However I need the 949 code page, and I can get that thing only if I run the program, and get the dos shell, type CHCP 949, and returning to the program. Just typing CHCP 949 on COMMAND.COM does not work. Any Solution?
      My Computer


  2. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #2

    Hello Alan1313

    I understand that you are having problem with code page 494, when using NTVDM? Particularly, when you run a program under NTVDM.

    Can you tell me, what is the "bitness" of the program you wish to run? 16-bit or 32-bit?

    If you are experiencing problem running 16-bit program under NTVDM with code page other than English, then you might find this question and solution helpful: Windows 7 and 16-bit programs' problems | Microsoft Answers.

    Dear Itknowledge24 ,

    I run Windows 7 32 bit English, but use a Turkish Key board.

    Windows 7 has no problem of swiching between the keyboard layouts.

    NTVDM, do not inherit the keyboard code from windows 7, that had been set.

    It does get its keyboard setting, as old DOS does, thru Config.sys ("nt" in xp and 7), and Autoexec.bat ("nt")

    When you showed the directories of NTVDM, it was very clear to me that we have to add only the necessary lines to config and autoexec.

    That was it.

    For anyone who may need,

    here is the config.nt, and autoexec.nt modifications (for turkish keyboard:

    config.nt;

    dos=high, umb
    device=%SystemRoot%\system32\himem.sys
    COUNTRY=090,857, %SystemRoot%\system32\COUNTRY.SYS

    files=99

    autoexec.nt;

    %SystemRoot%\system32\KB16 TR,857, %SystemRoot%\system32\KEYBOARD.SYS

    For Danish;

    DK,850

    For Belgium;

    BE,850

    Thank you for you and others who have been contributed to the solution.

    Best Regards.
    Read the question and the 18 replies.
      My Computer


  3. Posts : 36
    Windows 7
    Thread Starter
       #3

    I saw that Microsoft Question before, and I mean, when I run a 16-bit console app, I need the 949 code page, but NTVDM always change the code page to 437. When this happens, the texts are all broken. I tried to type CHCP 949 and run the application or change the code page by registry, but it didn't work.

    And the question doesn't have about 949(Korean) one.

    I also tried to replace XP's NTVDM and Seven's NTVDM, and the 16-bit app didn't even work.
    Last edited by Alan1313; 14 Aug 2019 at 19:48. Reason: add some text
      My Computer


  4. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #4

    Hello,

    Had you tried the config.nt and autoexec.nt modifications to the necessary lines?

    You can, where the provided solution uses code 857, use code 949. For example:

    config.nt;

    dos=high, umb
    device=%SystemRoot%\system32\himem.sys
    COUNTRY=437,949, %SystemRoot%\system32\COUNTRY.SYS
    files=99


    autoexec.nt;
    %SystemRoot%\system32\KB16 ??,949, %SystemRoot%\system32\KEYBOARD.SYS

    Where I have put '??', this is the keyboard layout. You leave the keyboard layout the same as it is now.

    Back-up autoexec.nt and config.nt by renaming them as autoexec.bak and config.bak, before you make any changes. Then you have spare copies of these files in case you do not like the changes youve made.
      My Computer


  5. Posts : 36
    Windows 7
    Thread Starter
       #5

    Well, the text like 'C:\>' or 'Microsoft Windows [Version 6.1.7601...' doesn't appear, and no 949 codepage.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:41.
Find Us