Create a raw file with windows context menu

Windows 10/7:

Wondering if it's possible to right click in any folder, from New -> choosing File (I mean with no icon) and it let me type filename with extension. Then it become a html,css,txt file or whatever I typed as extension.

Thank you.

2

2 Answers

Whenever you create a new file, it is just an empty file with extension, but that extension has no meaning until you actually put something inside the file.

By default Hide extensions for known filetypes is enabled. If you disable this setting, and you choose new textdocument, and then give it any name, such as MyAwesomeWebsite.htm it will then be a htm file.

So there's no need to create something in order to create raw files, because every file you make is a raw one. It just gives an extension for those of us who need to double click the file in order to open it with their default program.

To show extensions, do the following: Open an explorer window, go to the menu View, then at the right check File name extensions

Now, right-click, New > Text document and rename New Textdocument.txt to Whatever.anything and it will work as you request.

If you really want to add an entry to this New menu, which will save you the hastle of also editing the extension, then you can edit the registry and add it. It would only be interesting if you add this specific file on a daily basis and you are not using a text editor capable of creating your kind of files directly.

See here for the full instruction set:

The registry key is HKEY_CLASSES_ROOT\.extension

From that extension, create a new key: ShellNew And give that a new StringValue with text NullFile

I can't comment. new users limitation!!!

But still no way for what i was looking. let' me say it better, right click and choose new->**shortcut**; what kind of file is created? nothing. I'm looking for something like that, except, not seeing a window to choose something. let me type a name and extension

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like