How to Create a File in CMD

Save

The "cmd" command in Windows opens the MS-DOS command line utility, which lets you set up and configure the desktop. You can use the MS-DOS command line to create plain text files. These files are used as log files, or you can send output from the commands you type to a text file. This type of configuration lets you keep track of any errors encountered while using the MS-DOS prompt.

  • Click the Windows "Start" button and type "cmd" in the text box. Press "Enter." If you run Windows XP, you must first select "Run" from the menu, then type in the command.

  • Type "copy con newfile.txt" and press "Enter." Replace "newfile.txt" with the name you want to use for the file. This command starts an editor, so the next lines of text you enter are added to the file.

  • Type some text in the command prompt. After you finish adding the text you want to save to the file, press "Ctrl" and "Z." This key combination exits you out of the editor.

References

Promoted By Zergnet

Comments

Related Searches

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!