Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Windows 7 64-bit. I could not find a command that enables me to write a text file in the command prompt. Is there a command for this on Windows 7 x64? I tried edit but it is not supported by Windows 7 x64. Is there another command to do this?

share|improve this question
    
Why would you need a console text editor exactly? Is this something related to SQL query composition? –  Martheen Cahya Paulo Jan 24 '11 at 7:42
1  
If you are coming from a nix background, or if you do a lot of work in the console generally it can be really helpful to have a bare-bones text editor - for hacking scripts etc (like vim or nano)... –  AJH Jul 30 '12 at 18:55

3 Answers 3

Execute copy con note.txt

and type text, finish with Ctrl-Z.

share|improve this answer
    
Very cool trick that. –  paradroid Jan 25 '11 at 4:04
    
So how do I edit existing 10-MB files? –  Alex Oct 16 at 17:20

There is none. EDIT is a 16-bit DOS program, and Windows 7 x64 doesn't support 16-bit applications. If you need to edit text files via the command line in 64-bit Windows, you will need to use a third party application like VIM.

share|improve this answer

If you are looking for a replacement console text editor, Brief Basic is a single .exe file and uses pretty standard keyboard shortcuts.

The original 16-bit version of Brief was widely used in the MS-DOS days.

Brief text Editor

share|improve this answer
    
Brief requires installation; Edit did not; I do not have administrative privileges. –  Alex Oct 16 at 17:20
    
@Alex Brief does not need installation. It's just a single .exe file that needs to be added to any directory in your %PATH%, and any user can edit their user %PATH%. –  paradroid Oct 17 at 10:44
    
That might be the case; but, their website's Download link brings me to downloading Brief450.msi , which is pretty obviously an installer. Hmm, for some reason SU removes the [at]paradroid at the beginning of my text... –  Alex Oct 26 at 1:14
    
@Alex That's because I get a notification anyway, as the comments are under one of my answers. –  paradroid Oct 26 at 16:40

protected by nhinkle Sep 5 at 20:24

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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