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?

link|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
feedback

4 Answers

Execute copy con note.txt

and type text, finish with Ctrl-Z.

link|improve this answer
Very cool trick that. – paradroid Jan 25 '11 at 4:04
feedback

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.

link|improve this answer
feedback

Can you use notepad? It can be started from the command line.

link|improve this answer
feedback

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

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.