Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do you create an empty file from the command line in Windows

Is there any command, using that we can create a text file or any other format. To make a folder we use md command, but to creat a file.

share|improve this question

marked as duplicate by slhck Jan 18 '13 at 19:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I assume you are talking about the windows command line? – terdon Jan 18 '13 at 18:38
yes. You are right. – naresh kumar Jan 18 '13 at 18:41
You should specify a version of Windows you are on. For XP there used to be edit, but that isn't enabled by default in 7 (not sure if you can enable either). Personally, I would suggest downloading vim for Windows and adding it to your PATH. It's very powerful, well supported, and has good documentation. Then you could do vim C:\Users\file.txt to make (or edit) the file that's there. – nerdwaller Jan 18 '13 at 18:43
up vote 1 down vote accepted

type nul >> name.ext will create an empty name.ext file .

share|improve this answer
Yes. It is working perfectly. One more thing can you tell me from where I will get this type of commands documentation. Because these are not available in commandline help – naresh kumar Jan 19 '13 at 3:30

Not the answer you're looking for? Browse other questions tagged .