Sign in with
Sign up | Sign in

Edit Command removed from Win7 x64

Last response: in Windows 7
Share

The "edit" command is missing from all 64-bit versions of Windows because it is a 16-bit application. 64-bit Windows has no 16-bit subsystem and so cannot run such programs.

There are very few text editors that will run in a command prompt (and little need because, unlike UNIX, you can seldom correct Windows problems by editing text files), but if you really need one then emacs can be run in either text or GUI modes. And it is, arguably, the greatest text editor ever made.

As ijack said...

What I do is I have a small .CMD file in my \WINDOWS\SYSTEM32 called EDIT.CMD. It merely has the command NOTEPAD.EXE %1 in it. So now in a command window when I use the edit command like I used to in the old days it launches notepad instead.

nocheese said:
As ijack said...

What I do is I have a small .CMD file in my \WINDOWS\SYSTEM32 called EDIT.CMD. It merely has the command NOTEPAD.EXE %1 in it. So now in a command window when I use the edit command like I used to in the old days it launches notepad instead.

But that's not going to be much use if, as the OP says, there are problems with the GUI. On the other hand it would be a clever person who could fix that with a text editor.
Related ressources

Windows Server Core is a GUI-less version of Windows - but even it uses Notepad to edit files. The low-level GUI stuff is pretty solid, it's really not something you have to worry about. For example, you can open up task manager and kill the desktop shell (Explorer.exe), then use File -> New Task to run Notepad. The shell and all it's attendant complications are not something that's needed to run a basic GUI program like Notepad.

As things go in the list of concerns with Windows, a lack of EDIT.EXE is awfully far down on the list.

Notepad is useless for editing text documents created with linux/unix.

They appear as one long line without any cr/lf. I used the edit.exe on the command line (which did recognize unix/linux formatted text documents). I'd simply add a line/delete a line, ctrl-f, x, yes to save, then reopen in notepad, Voila - properly formatted text document.

Notepad and edit are two completely different programs, to substitute one for the other is like substituting a metric wrench for an imperial one.

Anyways. Leave it to M$ to do something like that.

!