Professional Documents
Culture Documents
Download Article
Method 1 of 4:
1 Creating a File
cis.CommandPrompt
MicrosoftWindows[Version10.0.17134.285]
(c)2018MicrosoftCorporation.Allrightsreserved.
C:\Users\wikih>cddesktop
C:\Users\wikih\Desktoptypenull>hello.txt
wikiHow
Press Enter.
Type some text. This is a rudimentary text
editor, but it's good for quick notes or code.
You can use the Enter key to go to the
next line.
Press Control + Z when you're finished
editing the file.
Press the Enter key. You'll see "1 file(s)
copied," which means your file is now
saved with the name you created.
Another way to do this is to run this
command: echo enter your text
here > filename.txt.
Method 2 of 4:
2 Deleting a File
Method 3 of 4:
3 Creating a Folder
Learn more
Method 4 of 4:
4 Deleting a Folder
Community Q&A
Question
Subhodeep Roy
Community Answer
Question
Community Answer
Question
Community Answer
Video
Warnings
How to
Delete a File Using Command Prompt
How to
Change Directories in Command Prompt
How to
Copy Files in Command Prompt
How to Run an EXE File at the Windows
Command Prompt
How to
Use Net Send
How to
Use Windows Command Prompt to Run a
Python File
How to
Go Back Using the Command Prompt
How to
Add Users from CMD
How to
Watch Star Wars on Command Prompt
How to
Merge Text (.Txt) Files in Command Prompt
References
1. ↑ https://www.youtube.com/watch?
v=UUXoESFy3Zk
2. ↑ https://www.w3schools.io/terminal/dos-
empty-file/
3. ↑ https://www.youtube.com/watch?
v=UUXoESFy3Zk
4. ↑ https://techpp.com/2021/08/22/create-file-
using-command-prompt-guide/
5. ↑ https://winaero.com/create-file-specific-
size-windows-10/
6. ↑ https://www.windows-
commandline.com/delete-files-command-line/
7. ↑ https://www.technipages.com/windows-
create-folders-from-cmd
8. ↑ https://www.technipages.com/windows-
create-folders-from-cmd
9. ↑ https://www.technipages.com/windows-
create-folders-from-cmd
Written by:
Nicole Levine, MFA
wikiHow Technology Writer
Co-authors: 25
Updated: September 23, 2022
Views: 1,203,861
Article Summary
In other languages
Yes No
Follow Us