windows - Custom File Type in ShellNew

07
2014-07
  • Faith

    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.

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    Create file of any type in Windows Explorer
  • Franz

    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?


  • Related Answers
  • Ishikawa Yoshi

    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.

  • Franz
  • Seasoned Advice (cooking)

    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").