I 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 :
- Open Command Prompt (Start > Run > Type “cmd”)
- Type copy con <filename>.txt
- Type the contents of the .txt file. You can change line by normally press Enter
- 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 🙂
Advertisements