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.

link|improve this question

1  
For which version of Windows? – Snark Sep 10 '10 at 3:55
feedback

5 Answers

up vote 12 down vote accepted

edit filename

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.

link|improve this answer
1  
On all versions of Windows? There is no "edit" on Windows 7 apparently. – Snark Sep 10 '10 at 3:53
3  
Holy crap! I never knew that was there! – yhw42 Sep 10 '10 at 3:54
1  
Odd... evidently it's installed by default on Windows 7 32-bit, but not on Windows 7 64-bit. That's sad. – nhinkle Sep 10 '10 at 4:12
This command only freezes when I try to call it! – Casebash Sep 10 '10 at 4:18
1  
@nhinkle: I seem to recall reading something about 16-bit apps being unavailable under 64-bit windows installs. – intuited Sep 10 '10 at 4:34
show 2 more comments
feedback

If you're used to vi and don't want to settle for the built in editor you can get vim for Windows. It'll run from a command shell.

link|improve this answer
feedback

Believe it or not, EDLIN.EXE is still around <shudder> at least on this Vista system.

Excuse me while I sob softly to myself...

link|improve this answer
It was finally deleted in Windows 7 (at least the 64-bit versions). – paradroid Sep 10 '10 at 7:11
@jason404: It's still included in 32-bit Windows 7. – Dennis Williamson Sep 10 '10 at 15:08
feedback

The simplest solution on all versions of windows is:

C:\>notepad somefile.txt

And, no extra software required.

link|improve this answer
1  
Nice, but not over SSH – Casebash Sep 10 '10 at 4:10
1  
Ah. Right. Windows doesn't have a command-line editor built in. You'll probably need to install the Gnu version of the editor you want to use. Since you've already installed the ssh server, that should be no problem for you. – BillP3rd Sep 10 '10 at 4:27
feedback

edlin in dos should still work. Basic functionality though.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.