[Windows] Create new text-file from command prompt without Notepad

Command-Prompt-iconI will show you how to create a text-file using command prompt. We usually use text programs such as notepad to do this task, but this can also be done using command prompt. Here we go :

  1. Open Command Prompt (Start > Run > Type “cmd”)
  2. Type copy con <filename>.txt
  3. Type the contents of the .txt file. You can change line by normally press Enter
  4. To save your file, press Ctrl + Z then Enter

Now, you can open <filename>.txt with notepad, and the contents will be the same as you type in command line.

Here’s the screenshot





That’s it. Hope it helps 🙂





Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s