Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Keyboard Layout in DOS Mode

Reply
Thread Tools Display Modes

Keyboard Layout in DOS Mode

 
 
Fabrizio
Guest
Posts: n/a

 
      11-21-2007
Hi There ,

i'm an Itasian user of Vista.
I have italian keyboard
I use still a DOS program

I have tihs strange error:
when i open a command window the keyboard layout works fine, but when i
enter in EDIT the layout is set in English mode. When i start my DOS program
the layout is set in English mode.

Now KEYB command don't work till Windows XP version.
How can i set in config.nt or autoexec.nt the keyboard to have italian
layout ?

THX
F.

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      11-22-2007
"Fabrizio" <> wrote in message
news:3B02FD23-760B-4773-9C7C-...
> Hi There ,
> i'm an Itasian user of Vista.
> I have italian keyboard
> I use still a DOS program
> I have tihs strange error:
> when i open a command window the keyboard layout works fine, but when i
> enter in EDIT the layout is set in English mode. When i start my DOS
> program the layout is set in English mode.
> Now KEYB command don't work till Windows XP version.
> How can i set in config.nt or autoexec.nt the keyboard to have italian
> layout ?


The command prompt CMD.EXE is a 32-bit aplication so it uses the Win32 NLS
setting you configure in Control Panel, Regional Settings. But when you
start a DOS application like EDIT, the DOS app reads the NLS settings from
thw DOS environment of the NTVDM; not the Win32 settings.

In Vista the DOS KEYB command is replaced by KB16.

First, test that KB16 runs okay, by entering the command:

C:\Windows\System32\KB16 IT,850,C:\Windows\System32\KEYBOARD.SYS

.... to enable an Italian keyboard. KB16 should return to a command prompt,
with no messages (error, or otherwise). The Italian keyboard will remain
active until you close the DOS prompt.

On Windows NT (including 2000, XP and Vista) a DOS application takes its
startup environment from the files C:\Windows\System32\Config.NT and
C:\Windows\System32\Autoexec.NT. So to activate a code page for a DOS app,
add the Italian code page commands to C:\Windows\System32\CONFIG.NT and
C:\Windows\System32\AUTOEXEC.NT, the same as you would to C:\CONFIG.SYS and
C:\AUTOEXEC.BAT on a DOS machine.

In CONFIG.NT add to the end of the file:

COUNTRY=039,850,C:\Windows\System32\COUNTRY.SYS

In AUTOEXEC.NT add to the end of the file:

C:\Windows\System32\KB16 IT,850,C:\Windows\System32\KEYBOARD.SYS

Now to test, open a Command Prompt.
Then run the command "command.com". This will start an instance of the
MS-DOS Command processor.
Run the command "edit", to start the DOS editor.
Try typing in a few words in Edit, to see if the new Italian keyboard is in
effect.

Hope it helps,

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard layout changes aleangelico Windows Vista General Discussion 6 01-29-2009 06:34 PM
How to set up the keyboard layout. nokia33948 Windows Vista General Discussion 1 11-20-2007 02:13 PM
Keyboard layout under DOS in Vista bostjan@tsc-laba.si Windows Vista General Discussion 2 08-03-2007 02:20 PM
MS Keyboard Layout Creator garcin lazare Windows Vista General Discussion 1 04-26-2007 01:46 PM
Wrong Keyboard layout!!! M.Atanasov Windows Vista General Discussion 0 10-15-2006 12:20 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59