windows - Custom File Type in ShellNew
2014-07
I am using a scripting language. It doesn't matter what it is, so I'll call it "LOL". For easier scripting, I wanted to add a new entry to ShellNew. I tried to add new entry to registry.
[HKEY_CLASSES_ROOT.lol\ShellNew]
"FileName"="Template.lol"
But it doesnt show up in Shell>New. Yes, I have created the template file in "C:\Windows\ShellNew\"
There is no installation or anything, just saving the file with .lol extension and putting them into a certain directory.
Right now, when creating a file of some format (e.g. PHP files) in Windows Explorer, I always have to use "Create new text file" to create a file and then rename it (often via console, because extensions are hidden - I know I could disable that feature).
Is there a way to simply add an option to create a new file of any type that simply lets me type in the extension?
Sometimes i open cmd in this folder and type something like
copy nul filname.ext
this hint create empty file with extension that you need.
Here's a tutorial you may find interesting:
Add items in New option of context menu in Windows Explorer or on desktop.
If you load up a blank document in notepad, fill in some content, and hit save.. in the save dialog change the file type to "All Files", then give the file a name (including the extension, like "my file.php").