Solved

wrong/lost  keys in DOS

Posted on 1998-05-03
10
199 Views
Last Modified: 2013-12-29
While using W3.1x, I found certain characters either lost or  on the wrong keys when I dropped to the DOS prompt or ran DOS programs like Word Perfect 5.1 or Turbo Basic.  Dell support suggested KEYB UK in either Config or Autoexec, can't remember which.
This cured the problem.  Now I'm using W95 the problem has returned.  I've tried the same fix in both .BAT & .DOS versions of Autoexec but doesn't cure the problem.
A work around would be useful if it's possible to add to a .BAT file before running the DOS application.
Any ideas
Greenbaron
0
Comment
Question by:greenbaron
  • 6
  • 4
10 Comments
 
LVL 14

Accepted Solution

by:
smeebud earned 80 total points
ID: 1711703
Baron, I believe the 1st URL update will fix you problem.

International versions of the Service Pack 1 Update.
http://www.microsoft.com/windows/software/servpak1/enduser.htm 
http://www.microsoft.com/windows/software/localize/localize.htm 

let me know
Note, If this answer does not work, either reject it or comment back.
I'm here to solve your problem and will gladly work with you until
you are satisfied.
It's your page.
Please don't accept or grade until you problem is solved as that will
lock out other techs.
You're under no time limit or restrictions.
Regards,
Bud
0
 

Author Comment

by:greenbaron
ID: 1711704
to smeebud
Thanks Bud for your quick response. We spoke some months ago on another, as yet unresolved problem, and at that time I downloaded Service Pack 1 and installed it.
I've just taken a look at the two suggested URLs neither has anything specifically UK so I doubt they will help?
Any other thoughts?  Don't rush, I'm out playing my cornet this evening or am I allowed to digress from the formality?
Derek
0
 
LVL 14

Expert Comment

by:smeebud
ID: 1711705
I'd reject my answer then baron,
If what I suggested doesn't work, I'm at the end of my knowledge in that area.

Regards,
Bud
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 14

Expert Comment

by:smeebud
ID: 1711706
Wait, I just remembered something.
Check you keyboard properties in your Control Panel.
Under language Tab, there's a language properties selection.
try English International, or English United States International.

I forgot all about those settings.

Bud
0
 

Author Comment

by:greenbaron
ID: 1711707
to smeebud
Bud - well yes I reject your answer but, just in case your interested, I've made some progress today!

The problem seems to stem from the fact that when W95 “installed” - actually an upgrade - the only version UK non OEM suppliers can sell, several files in \DOS directory have “disappeared” - presumably by installation process:-

1. C:\DOS\SETVER.EXE   is now C:\WINDOWS\SETVER.EXE            
2. C:\DOS\COUNTRY.SYS  is now C:\WINDOWS\COMMAND\COUNTRY.SYS
3. C:\DOS\SHARE.EXE    is now C:\WINDOWS\SHARE.EXE            
4. C:\DOS\MSCDEX.EXE   is now C:\WINDOWS\COMMAND\MSCDEX.EXE      
5. C:\DOS\SMARTDRV.EXE is now C:\WINDOWS\SMARTDRV.EXE            
6. C:\DOS\EMM386.EXE   is now C:\WINDOWS\EMM386.EXE

I made a bootable floppy and added pauses to the Autoexec so that the messages didn’t flash by.  I changed Autoexec and Config on the floppy only as and when an error occurred.

I first tried COPYing the missing files from the WINDOWS directories but, in some instances , this gave rise to messages like Wrong DOS version, where this happened I copied or expanded from the original DOS 6.2 disks.

I now have a bootable floppy that boots without errors and gives me £ pound etc.  at the Dos prompt and in WordPerfect 5.1.

The two crucial lines in Autoexec are:-
C:\DOS\KEYB.COM UK,437,C:\DOS\KEYBOARD.SYS
KEYB UK

I’ve started trying changes in Autoex.dos putting the above two lines in or rather unREMing them (W95’s work?). Gave message “Wrong version of DOS” any ideas?

Derek


0
 
LVL 14

Expert Comment

by:smeebud
ID: 1711708
1st, you didn't reject the answer. it's still lock to me. OK.
Did you;
"Comment From: smeebud   Date: Sunday, May 03 1998 - 11:01AM PDT

      Wait, I just remembered something.
      Check you keyboard properties in your Control Panel.
      Under language Tab, there's a language properties selection.
      try English International, or English United States International.

      I forgot all about those settings.
========================
2nd.
"A work around would be useful if it's possible to add to a .BAT file before running the DOS application."

Yes, You can use Exit to Dos.pif and copy that to another name, them custumize it to load what you want. It will have to be from the Windows\command files however.
1. Right click on the pif file and choose properties.
2. Program Tab then click "Advanced button'.
3. Check MSDOS MODE.
4. That will open up you options to configure you preferences for a dos session.

Please post your autoexec and config so I can look at them.

Bud
0
 

Author Comment

by:greenbaron
ID: 1711709
smeebud

Bud - I think you’ve missed something!  Keyboard is correct in W95 applications like Word, Excel etc.  The problem comes with either selecting a DOS program like Word Perfect 5.1 or the Dos prompt from the Start Menu or when I take the “restart in DOS option from the Close down panel.

I did check Control Panel, Keyboard, Language tab  and it  was correctly set to English (UK).

I guess as ever I’m dense but what does the .pif in Exit to Dos mean? And what am I to copy to a different name - and where will I  find it?

I’ve two sets of Config & Autoexec files all created or modified by W95 update installation.

Config.sys
--------------
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
FILES=50
DOS=UMB
FCBS=16,0
DEVICE=C:\WINDOWS\SETVER.EXE
DOS=HIGH
LASTDRIVE=K
SHELL=C:\COMMAND.COM C:\ /P /E:1024
DEVICEHIGH /L:0 =C:\DOS\POWER.EXE
REM COUNTRY=044,437,C:\DOS\COUNTRY.SYS
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=044,850,C:\WINDOWS\COMMAND\country.sys
DEVICE=C:\CDROM\MTMCDAI.SYS /D:MTMIDE01
DEVICEHIGH/L:0=C:\WINDOWS\COMMAND\DRVSPACE.SYS /MOVE
BUFFERS=17

Autoexec.bat
------------------
echo *** C:\AUTOEXEC.BAT **** BAT BAT BAT BAT
REM d out 22/3/98 @C:\PROGRA~1\DRSOLO~1\HOMEGU~1\GUARD.COM
@ECHO OFF
REM  31/10/97  POST CONVERT TO W95 WHICH PRODUCED THE By Windows Setup LINES
REM  AFTER ABOUT A MONTH DELETE THESE REM'D LINES
rem - By Windows Setup - LH /L:1,36224 C:\WINDOWS\COMMAND\MSCDEX /D:MTMIDE01 /M:10
C:\WINDOWS\COMMAND\DOSKEY /INSERT
PROMPT $P$G
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\BATCH2;C:\MENU;C:\BATCH;C:\;C:\MOUSE
rem - By Windows Setup - c:\MOUSE\MOUSE
SET TEMP=C:\TEMP
if exist c:\TEMP\*.tmp del c:\temp\*.tmp
if exist c:\windows\recent\*.lnk del c:\windows\recent\*.lnk
REM - By Windows Setup - SET COMSPEC=C:\DOS\COMMAND.COM
rem  LH /L:1,17856 KEYB UK this per MEMMAKER next line or L KEYB UK no difference
C:\WINDOWS\WIN
menu
REM [Dellmenu]
rem C:\DELL\DELLMENU.EXE
REM [End_Dellmenu]
mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
rem tried next line to replace above 3MAY98 - no apparent effect
rem C:\WINDOWS\COMMAND\keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
rem keyb uk in place of above line makes no difference to incorrect keys

Config.dos
--------------
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS
BUFFERS=10,0
FILES=50
DOS=UMB
LASTDRIVE=K
FCBS=16,0
DEVICE=C:\DOS\SETVER.EXE
DOS=HIGH
SHELL=C:\DOS\COMMAND.COM /P /E:1024
DEVICEHIGH /L:0 =C:\DOS\POWER.EXE
DEVICEHIGH /L:1,4560 =C:\WINDOWS\IFSHLP.SYS
STACKS=9,256
COUNTRY=044,,C:\WINDOWS\COMMAND\COUNTRY.SYS
REM COUNTRY=044,437,C:\DOS\COUNTRY.SYS
DEVICE=C:\CDROM\MTMCDAI.SYS /D:MTMIDE01
DEVICEHIGH/L:0=C:\WINDOWS\COMMAND\DRVSPACE.SYS /MOVE

Autoexec.dos
------------------
ECHO     *** AUTOEXEC.DOS ***   DOS DOS DOS DOS
pause
@ECHO OFF
REM  POST MEMMAKER 1 JUL 97
LH /L:1,16944 c:\DOS\SHARE.EXE /f:5100 /l:500
LH /L:1,36224 C:\DOS\MSCDEX /D:MTMIDE01 /M:10
LH /L:0 C:\DOS\SMARTDRV.EXE /X
C:\DOS\DOSKEY /INSERT
PROMPT $P$G
PATH C:\DOS;C:\BATCH2;C:\MENU;C:\BATCH;C:\;C:\WINDOWS;C:\MOUSE;
c:\MOUSE\MOUSE
SET TEMP=C:\TEMP
if exist c:\TEMP\*.tmp del c:\temp\*.tmp
SET COMSPEC=C:\DOS\COMMAND.COM
rem  LH /L:1,17856 KEYB UK this per MEMMAKER next line or L KEYB UK no difference
LH C:\DOS\KEYB.COM UK,437,C:\DOS\KEYBOARD.SYS
keyb uk
rem  C:\WINDOWS\WIN
rem menu
REM [Dellmenu]
rem C:\DELL\DELLMENU.EXE
REM [End_Dellmenu]

In pasting these in I’ve just noticed a COMMAND.DOS file - is this what W95 uses when you Exit or drop into Dos from  Start Menu?

Derek

0
 
LVL 14

Expert Comment

by:smeebud
ID: 1711710
I think you mean COMMAND.COM,  and yes.
If you have a dos prompt, go into your start menu and right click and choose properties.
You'll see
C:\WINDOWS\COMMAND.COM
target  C:\WINDOWS

REM - By Windows Setup - SET COMSPEC=C:\DOS\COMMAND.COM

You can type command.com in the Start/Run box and it will take you to dos.
I would use only the autoec.bat and config.sys, or the autoexec.dos and config.dos

Rename the .dos's to old and see what happens.
make sxure you have a boot disk just in case.
----------
RESCUE: Bootable floppy disk that will read your CDROM.
                                  Sometimes your system is unbootable.
Create a bootable floppy disk that will read your CDROM.
1. Insert a good blank disk.
2. Select Start/Settings/Control Panel, double-click on the
Add/Remove Programs icon. Click on the Startup Disk tab then
click on Create Disk. When Win95 is done, make the disk
read-only, label it and test it to be sure you can boot your
computer from it.
3. Then, You must create an Autoexec.bat that reads:
A:\MSCDEX.EXE /D:MTMIDE01 /M:15 /E and copy the
mscdex.exe on your disk. The MTM part is mine for Mitsumi, you
have to substitute your CD parameters.
4. The following is a simple AUTOEXEC.BAT File
A:\MSCDEX.EXE /D:MTMIDE01 /M:15 /E

5. You must create a Config.sys that reads:
DEVICE=A:\HIMEM.SYS
DEVICE=A:\EMM386.EXE
DEVICE=A:\MTMCDAI.SYS /D:MTMIDE0 [Substitute your
CD parameters here.]
DOS=HIGH,UMB
FILES=30
BUFFERS=30
6. The following is My CONFIG.SYS File. Note that I'm using my
Mitsumi CD-ROM Parameters.

DEVICE=A:\HIMEM.SYS
DEVICE=A:\EMM386.EXE
DEVICE=A:\MTMCDAI.SYS (Your CDROM Driver goes here)

7. The following are the Files I have on my disk.
[(MTMCDIA.SYS), [MSCDEX.EXE], [HIMEM.SYS],
[EMM386.EXE], EDIT.COM, FORMAT.COM,
REGEDIT.EXE, FDISK.EXE, SYS.COM, XCOPY.EXE,
DELTREE.EXE, ATTRIB.EXE, DISKCOPY.EXE,
CHKDSK.EXE, DEBUG.EXE, SCANDISK.EXE, (Your CD-ROM Driver)
To be extra safe, make two boot disks.

Bud
0
 

Author Comment

by:greenbaron
ID: 1711711
to smeebud
Bud
Having copied and pasted Config.sys & Autoexec.bat to you, I got round to looking at them both -bit late in the day?

When the W95 update was implemented it banged in:-
C:\WINDOWS\WIN  BEFORE lines

mode con ......
mode con ....
keyb uk

So, of course, it was jumping into Windows before setting the keyboard correctly!

Remember that in W3.11 every thing had been fine so it has to have been the update - still pretty stupid of me not to look for something simple.

This means I think that I can reject you suggestions without trying them! - Hope that's ok - guess I get the points!
Look out for my next problem

Thanx Derek

0
 
LVL 14

Expert Comment

by:smeebud
ID: 1711712
Oh Yea,
(pif -> Program Information File)

Program Information File

<file format> Under Windows, a file providing information on how a non-Windows application program should be run, including how
much memory should be allocated to it and what graphics interface it requires.

Filename extension: .pif

Bud
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question