Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

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.

1 Answer

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
    
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.