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

I want to create a new, empty file using Total Commander.

I have not been able to find out how to do this simple task, so I am asking here.

share|improve this question
up vote 26 down vote accepted

You can create a new text file in Total Commander by pressing SHFT + F4 and entering a file name. The file will automatically open in the editor which is configured under Configuration -> Options -> Operation -> Edit/View -> Editor for F4.

share|improve this answer
Ai... Should have thought about that myself. :-( – Tonny Feb 8 '12 at 12:10
@Tonny, I forget it always and look under every rock, but I can't find it. And then I feel so stupid when someone tells me it's Shift+F4. – Barnabas Szabolcs Oct 16 '15 at 9:02

I saw in some blog (don't remember which - sorry) on a very simple way to do it which has a more TC authentic feel to it:

  1. Go to Start-->Change Start Menu
  2. Choose Add Item and give it the name Create File
  3. In the Command text input, type - cmd /c type null >
  4. In the Parameters text input, type - ?%N
  5. In the Shortcut key drop down, choose whatever you want. I chose CTRL+ALT+F7 since it is easy for me to remember since F7 creates a new directory.

This way it works exactly like creating a new directory - and you can hardly notice it actually opens a shell window (it closes in less than a second).

share|improve this answer
Explanation: type null or type non-existent-filename.txt - this command will fail and the output of the command will be a text string of length 0. That output (in reality, "no characters") will be saved > to the %N filename. cmd /c - this command is present to suppress the error message that the type command will produce. – colemik Apr 27 '13 at 9:24
Note also that if the null file exists in the working directory, the contents of that file will be saved as the contents of the file that we are creating. – colemik Apr 27 '13 at 9:31
So cmd /c verify wrong-param > would be better than cmd /c type null > – colemik Apr 27 '13 at 9:37
"cmd /c - this command is present to suppress the error message that the type command will produce." - this is wrong. What generates the "File not found" error message is the Total Commander. tcmd generates the error because it can't find the type command (tcmd apparently does not understand system verbs) (note that there are no type.exe and copy.exe files in Windows). Because tcmd does not understand the system verbs, we first launch the shell cmd /c, becuase the shell (as compared to tcmd) understands system verbs. – colemik Apr 27 '13 at 10:32
@trismarck - Thank you for the explenations. – RonK Apr 27 '13 at 17:43

Press SHIFT +F4. Simple. No need for any menus or the mouse.

share|improve this answer

If it is about text files copy an existing file and rename it. Open it and select all, delete. I admit, that this is more difficult than in Windows Explorer but you will get used to it soon and often you copy files that are similar in its contents so modifying from an existing copy makes it easier than writing everything from scratch. At least this is the case when dealing with code.

share|improve this answer

Unfortunately, you can't.

At least not directly with Total Commander. But you can invoke the standard Windows Explorer behavior from Total Commander.

Try this:

In the Total Commander file/folders-panel right-click and hold the mouse for about 1 second. Total Commander will now fall-through to the normal Windows right-mouse menu you would normally get in Windows Explorer.

This menu's context depends on the object beneath the mouse-pointer. So you will only see the New->Text document (or whatever other file-format that's available on your system) option if you do this without any object beneath the cursor.

So you will have to click below the last file in the list in order to have nothing selected. Even if the list fills the panel completely there is still a tiny (5 pixels or so) blank area below the last file that you can use.

share|improve this answer
Oh, OK. This is a bit stupid, but it helps. – Karel Bílek Feb 7 '12 at 2:05
Incorrect answer - see Tedesco's answer - – RonK Aug 13 '12 at 10:24

You must log in to answer this question.

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