Computing.Net > Forums > Disk Operating System > Code Page problem (DOS in Win 2K)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Code Page problem (DOS in Win 2K)

Reply to Message Icon

Name: Steve Mead
Date: April 10, 2001 at 01:36:35 Pacific
Comment:

I have just purchased a Dell Inspiron 8000 and am having a problem making a DOS program work properly in Windows 2000. The problem is that some of the text characters in the program cannot be recognised. The DOS software manufacturer has informed me that the program works correctly under Windows 98 if the following changes are made to the CONFIG.SYS and the AUTOEXEC.BAT files:

Edit CONFIG.SYS in Windows 98 by adding the following line DEVICE=C:\WINDOWS\COMMAND\DISPLAY.SYS CON=(EGA,437,1) If COUNTRY=044,,... line exists change this to COUNTRY=044,437,....

Edit AUTOEXEC.BAT in Windows 98 by adding the three following lines
PATH=C:\WINDOWS\COMMAND
MODE CODE CP PREP=((437)C:\WINDOWS\COMMAND\EGA.CPI)
MODE CON CP SELECT=437
If KEYB UK,,.... line exists change this to KEYB UK,437,....

In Windows 98, therefore, the solution appears to be to force the code page to be 437.

In Windows 2000, the files DISPLAY.SYS and EGA.CPI are not available. I have tried changing the locale and keyboard in Regional Settings to USA. I have also tried booting the computer in Safe Mode so that the display is VGA. I am still getting hieroglyphics on the screen, however. Can you suggest a solution so that the code page = 437 when I run this DOS program under Windows 2000, please?



Sponsored Link
Ads by Google

Response Number 1
Name: The Doof
Date: April 10, 2001 at 03:16:04 Pacific
Reply:

It's simply not possible with Windows 2000. The DOS emulator is extremely fussy about direct hardware calls. Any command that calls directly to a device, in this case the video BIOS, will fail.



0

Response Number 2
Name: DoOMsdAY
Date: April 10, 2001 at 04:34:18 Pacific
Reply:

Here is a Windows NT trick that may or may not help. Try executing your program as follows. Let's say the name of the executable for your DOS program is dosprog.exe. Instead of calling it as "dosprog" at the command prompt, call it as "forcedos dosprog.exe". I am unsure if forcedos exists in 2000 as I don't use 2000 myself yet. Forcedos has gotten me around times when DOS programs were terminated by the HAL due to direct hardware calls on NT, however.


0

Response Number 3
Name: Michael
Date: April 10, 2001 at 06:12:35 Pacific
Reply:

Dooms...
Great tip! I have Win2K and forcedos is there! Thanks! I plan to try it out soon!

-Michael


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Code Page problem (DOS in Win 2K)

DOS and Win 2k partition www.computing.net/answers/dos/dos-and-win-2k-partition/12894.html

running dos programs in win xp www.computing.net/answers/dos/running-dos-programs-in-win-xp/9114.html

DOS and Win XP Pro www.computing.net/answers/dos/dos-and-win-xp-pro/15053.html