"edit" function in cmd Windows XP SP3

O

Oni

When I type "edit /?" in command prompt, I get the following message.

One or more CON code pages invalid for given keyboard code

MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.

EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]

/B - Forces monochrome mode.
/H - Displays the maximum number of lines possible for your hardware.
/R - Load file(s) in read-only mode.
/S - Forces the use of short filenames.
/<nnn> - Load binary file(s), wrapping lines to <nnn> characters wide.
/? - Displays this help screen.
[file] - Specifies initial files(s) to load. Wildcards and multiple
filespecs can be given.

The below link provides the following explanation on the subject:
http://technet.microsoft.com/en-us/library/cc750871.aspx

One or more CON code pages invalid for given keyboard code

The KEYB command examined all prepared code pages, and has found that at
least one code page is incompatible for your screen console device (CON).
This is only information to let you know that your keyboard and screen
console are working with different code pages.

PROBLEM:
When trying to edit text using the "edit" command all text is coming out as
garbled or as special characters.

If anyone knows a fix or can shed some light on this I would be grateful.

If more info is required please let me know and i'll provide it.

Thanks in advance.
 
O

Oni

Hi again

Thanks for your swift reply.

Could be *.txt, *.bat *cmd, basically all files which can be edited this way.

Reason for asking is that I find it very easy to edit files this way work
alot in cmd.
--
Regards
Oni


thecreator said:
Hi Oni,

What file are you editing that can't be done from Notepad or Wordpad?


--
thecreator

Oni said:
When I type "edit /?" in command prompt, I get the following message.

One or more CON code pages invalid for given keyboard code

MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.

EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]

/B - Forces monochrome mode.
/H - Displays the maximum number of lines possible for your
hardware.
/R - Load file(s) in read-only mode.
/S - Forces the use of short filenames.
/<nnn> - Load binary file(s), wrapping lines to <nnn> characters wide.
/? - Displays this help screen.
[file] - Specifies initial files(s) to load. Wildcards and multiple
filespecs can be given.

The below link provides the following explanation on the subject:
http://technet.microsoft.com/en-us/library/cc750871.aspx

One or more CON code pages invalid for given keyboard code

The KEYB command examined all prepared code pages, and has found that at
least one code page is incompatible for your screen console device (CON).
This is only information to let you know that your keyboard and screen
console are working with different code pages.

PROBLEM:
When trying to edit text using the "edit" command all text is coming out
as
garbled or as special characters.

If anyone knows a fix or can shed some light on this I would be grateful.

If more info is required please let me know and i'll provide it.

Thanks in advance.
 
O

Oni

Hi Jeff,

Thanks for your quick reply.

Info provided below:

System Locale: en-us;English (United States)
Input Locale: no;Norwegian (Bokmal)
 
T

thecreator

Hi Oni,

Have you checked your settings for the Keyboard in Regional and Language
Options found in the Control Panel? Have you Added Support for your Language
in there? If editing a Norwegian Language Bat file, is that Language
Keyboard Active?


--
thecreator

Oni said:
Hi again

Thanks for your swift reply.

Could be *.txt, *.bat *cmd, basically all files which can be edited this
way.

Reason for asking is that I find it very easy to edit files this way work
alot in cmd.
--
Regards
Oni


thecreator said:
Hi Oni,

What file are you editing that can't be done from Notepad or Wordpad?


--
thecreator

Oni said:
When I type "edit /?" in command prompt, I get the following message.

One or more CON code pages invalid for given keyboard code

MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.

EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]

/B - Forces monochrome mode.
/H - Displays the maximum number of lines possible for your
hardware.
/R - Load file(s) in read-only mode.
/S - Forces the use of short filenames.
/<nnn> - Load binary file(s), wrapping lines to <nnn> characters
wide.
/? - Displays this help screen.
[file] - Specifies initial files(s) to load. Wildcards and multiple
filespecs can be given.

The below link provides the following explanation on the subject:
http://technet.microsoft.com/en-us/library/cc750871.aspx

One or more CON code pages invalid for given keyboard code

The KEYB command examined all prepared code pages, and has found that
at
least one code page is incompatible for your screen console device
(CON).
This is only information to let you know that your keyboard and screen
console are working with different code pages.

PROBLEM:
When trying to edit text using the "edit" command all text is coming
out
as
garbled or as special characters.

If anyone knows a fix or can shed some light on this I would be
grateful.

If more info is required please let me know and i'll provide it.

Thanks in advance.
 
O

Oni

Hi again,

If your refering to "Input Locale", it's posted already, but here it is again.
System Locale: en-us;English (United States)
Input Locale: no;Norwegian (Bokmal)
 
O

Oni

Hi again.

Problem has now been fixed, changed system locale to no;Norwegian (Bokmal)
and it was ok.

Thanks for your support ;-)
 
O

Oni

Hi again.

Problem has now been fixed, changed system locale to no;Norwegian (Bokmal)
and it was ok.

Thanks for your support ;-)
 
P

Pegasus \(MVP\)

Oni said:
Hi again

Thanks for your swift reply.

Could be *.txt, *.bat *cmd, basically all files which can be edited this
way.

Reason for asking is that I find it very easy to edit files this way work
alot in cmd.

Edit.com is a 16- bit legacy program. It lacks many features that we take
for granted in Windows, e.g. the ability to paste text into it and out of it
from any other 32-bit application, e.g. from your newsreader or from a web
page. It also locks up the current Command Prompt, preventing you from
opening a second or a third editor (unless you start another Command
Prompt), and it tends to load up the CPU quite a lot. I recommend that you
give notepad.exe a try. This will certainly solve your current problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top