Edit Command Missing

G

Guest

When I click the "Command Prompt" a new window opens as it is supposed to

I have certain "Batch" Files that do a lot of my work automatically

When I needed to make alterations I used to type in "Edit TransferOne.bat"
and the file would open up and I could make alterations

Save the file and then everything would work fine from a "Shortcut on the
Desktop"

Last week I went to the "Command Prompt" to make an alteration and it says
the


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\>edit TransferOne.bat
'edit' is not recognized as an internal or external command,
operable program or batch file.

c:\>

I did some other functions and "Type" or "More" does not work either


I dont know when they stopped working as it is not a function I use often

I checked on my DeskTop and they still work there - just not on my LapTop
 
P

Patrick Keenan

Nylex said:
When I click the "Command Prompt" a new window opens as it is supposed to

I have certain "Batch" Files that do a lot of my work automatically

When I needed to make alterations I used to type in "Edit TransferOne.bat"
and the file would open up and I could make alterations

Save the file and then everything would work fine from a "Shortcut on the
Desktop"

Last week I went to the "Command Prompt" to make an alteration and it says
the


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\>edit TransferOne.bat
'edit' is not recognized as an internal or external command,
operable program or batch file.

c:\>

I did some other functions and "Type" or "More" does not work either


I dont know when they stopped working as it is not a function I use often

I checked on my DeskTop and they still work there - just not on my LapTop

This usually means that the path variable has changed and no longer includes
the windows\system32 folder, where those apps and commands live.

At a command prompt, type "set" or "path" and you will likely see that the
path doesn't have this.

Right-click on My Computer, then Properties, then Advanced and finally
Environment Variables. In the lower section, where it says "system
variables", click on Path and choose Edit, then add this, preferably at the
start:

%SystemRoot%\system32

Click OK back to the desktop. The commands should work now.

HTH
-pk
 
P

Pegasus

Nylex said:
When I click the "Command Prompt" a new window opens as it is supposed to

I have certain "Batch" Files that do a lot of my work automatically

When I needed to make alterations I used to type in "Edit TransferOne.bat"
and the file would open up and I could make alterations

Save the file and then everything would work fine from a "Shortcut on the
Desktop"

Last week I went to the "Command Prompt" to make an alteration and it says
the


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\>edit TransferOne.bat
'edit' is not recognized as an internal or external command,
operable program or batch file.

c:\>

I did some other functions and "Type" or "More" does not work either


I dont know when they stopped working as it is not a function I use often

I checked on my DeskTop and they still work there - just not on my LapTop

Further to Patrick's reply: "Edit" is a legacy 16-bit command. You should
use notepad.exe instead. It is far more powerful than edit.
 
N

Nightowl

Nylex said:
Last week I went to the "Command Prompt" to make an alteration and it says
the


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\>edit TransferOne.bat
'edit' is not recognized as an internal or external command,
operable program or batch file.

c:\>

I did some other functions and "Type" or "More" does not work either

Hi Nylex

Following on from Patrick's advice -- if when you check the path you
find that System32 *is* there, it could be that the Path is set to the
wrong data type in the registry.

Check the key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
If the Path value includes variables such as %SystemRoot%, it should be
of type REG_EXPAND_SZ, not REG_SZ.

Let us know how you get on :)
 

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