On Unix I'd just use vi, but I don't know what the command is on Windows. I am actually trying to edit files over SSH with Windows Server 2008.
I won't vouch for its functionality and outdated GUI but it is installed by default, even on Windows 7.
Edit: Except 64 bit versions of Windows.
The simplest solution on all versions of Windows is:
C:\> notepad somefile.txt
And, no extra software required.
From a Windows command prompt enter copy con followed by the target file name. (
copy con c:\file.txt).
Then enter the text you want to put in the file.
End and save the file by pressing CTRL-Z then Enter or F6 then Enter.
If you want to change text in an existing file simply display the text by using the command
type followed by the file name and then just copy and paste the text in to the
copy con command.
Believe it or not,
EDLIN.EXE is still around
<shudder> at least on this Vista system.
Excuse me while I sob softly to myself...
I don't know about SSH, or anything (else?) server-related, so forgive me if this "solution" is useless. If you want to edit files in the command prompt, you can get the Windows version of Nano.
As a side note, those little
^ signs at the bottom of the window are supposed to represent the Ctrl button. For instance,
^X Exit means that you can exit the program using Ctrl-X.
Also, Nano will sometimes add extra newlines when saving files. This seems to be some kind of bug with Nano's word wrapping.
I've also seen ports of vi for Windows, although I've used one that just seem to make command prompt window as small as it can be, leaving only a title bar (which means the rest of the window may as well be invisible, since you can't see what you're doing). However, the Windows version of Vim seems to work quite nicely.
protected by slhck May 24 '15 at 16:40
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?