Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #186313

Re: Creating new files of indeterminate sort?

From knuttle <keith_nuttle@yahoo.com>
Newsgroups alt.comp.os.windows-10
Subject Re: Creating new files of indeterminate sort?
Date 2025-07-28 12:43 -0400
Organization A noiseless patient Spider
Message-ID <10689b1$27iih$1@dont-email.me> (permalink)
References <1067nhn$21tqk$2@dont-email.me> <MPG.42f180124197c1fd9896b3@news.eternal-september.org>

Show all headers | View raw


On 07/28/2025 8:40 AM, Philip Herlihy wrote:
> In article <1067nhn$21tqk$2@dont-email.me>, G6JPG@255soft.uk says...
>>
>> Is there any way to add something of the sort to the "New ..." menu in
>> File Manager?
>>
>> I recently wanted to create a .css file, for example. The only way I
>> know is to create a new text file (that's the only option that makes a
>> file of zero size), then rename it, accepting the warning about changing
>> the extension. (Or create and edit it as a text file, then have to
>> fiddle with the name in the save function in Notepad or whatever editor.)
> 
> 
> I asked Perplexity.ai:  "In Windows, when you right click within a
> folder or on the desktop, the context menu offers options to create New
> files of various types. How can I add to that list, so that I could
> create, for example, a new file of type .css?"
> 
> Here's what it came back with:
> 
> To add a file type like .css to the Windows context menu's "New" submenu
> (shown when you right click in a folder or on the desktop), you need to
> edit the Windows Registry. Here?s a step-by-step guide for adding a new
> .css file option:
> 
> Steps to Add a .css File Option
> Open the Registry Editor
> 
> Press Windows + R, type regedit, and hit Enter.
> 
> Navigate to the Right Location
> 
> Go to: HKEY_CLASSES_ROOT
> 
> Scroll down to find the extension you want. If .css is not present,
> create it:
> 
> Right-click on HKEY_CLASSES_ROOT
> 
> Select New > Key
> 
> Name the key: .css
> 
> Create the ShellNew Key
> 
> Right-click on the .css key you just created
> 
> Select New > Key
> 
> Name this new key: ShellNew
> 
> Add the NullFile Value (for a blank .css file)
> 
> With ShellNew selected, right-click in the right pane
> 
> Select New > String Value
> 
> Name it: NullFile
> 
> Leave its value empty
> 
> This will create a new blank .css file when you choose "New > Cascading
> Style Sheet Document" from the context menu.
> 
> Optional step: If you want new .css files to contain template content,
> instead of NullFile, use a string value named FileName and set it to
> point to a template file (such as css.css in C:\Windows\ShellNew\):
> 
> text
> "FileName"="css.css"
> Applying Changes
> Restart File Explorer (or reboot) for the new menu item to appear.
> 
> Sample Registry Entry
> If you prefer, you can create a .reg file with the following contents,
> then run it:
> 
> 
> Windows Registry Editor Version 5.00
> 
> [HKEY_CLASSES_ROOT\.css]
> @="cssfile"
> 
> [HKEY_CLASSES_ROOT\.css\ShellNew]
> "NullFile"=""
> Save this into a file like add-css-to-context-menu.reg and double-click
> it to add the entry.
> 
> After completing these steps, you will see "Cascading Style Sheet
> Document" (.css) as an option in your right-click "New" menu, letting
> you quickly create new .css files wherever you need them.
> 
It is easier to open the Notepad form the Start, type the instruction 
you what in the new CSS file, and save with as "YOURFILENAME.css" in the 
appropriate directory.

I do it all of the time writing BAT files.  I open the Notepad and write 
the instruction I want.  Leaving Notepad open, I save the BAT file in 
the directory where it is to be used.   If it does not work I go back to 
Notepad, make the correction and save the correction to revise my BAT file.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-28 12:39 +0100
  Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-28 08:18 -0400
    Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-28 16:46 +0100
      Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-28 18:51 +0200
        Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-28 19:10 +0100
          Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-28 22:18 +0200
            Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-29 01:37 +0100
              Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-29 09:10 +0200
                Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-29 18:46 +0100
                Re: Creating new files of indeterminate sort? knuttle <keith_nuttle@yahoo.com> - 2025-07-29 13:58 -0400
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-29 20:21 +0200
                Re: Creating new files of indeterminate sort? knuttle <keith_nuttle@yahoo.com> - 2025-07-29 15:20 -0400
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-29 21:47 +0200
                Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-29 22:38 +0100
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-30 08:57 +0200
                Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-29 22:02 -0400
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-30 09:54 +0200
                Re: Creating new files of indeterminate sort? Philip Herlihy <nothing@invalid.com> - 2025-07-30 14:24 +0100
                Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-30 09:55 -0400
                Re: Creating new files of indeterminate sort? knuttle <keith_nuttle@yahoo.com> - 2025-07-30 13:44 -0400
                Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-30 23:33 -0400
              Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-29 10:03 +0200
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-29 10:15 +0200
                Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-29 22:51 +0100
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-30 09:42 +0200
                Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-30 10:02 -0400
                Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-30 17:04 +0200
                Re: Creating new files of indeterminate sort? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-30 21:49 +0100
                Re: Creating new files of indeterminate sort? Mark Lloyd <not.email@all.invalid> - 2025-07-30 18:15 +0000
                Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-30 23:37 -0400
    Re: Creating new files of indeterminate sort? Chris <ithinkiam@gmail.com> - 2025-07-29 06:26 +0000
      Re: Creating new files of indeterminate sort? Paul <nospam@needed.invalid> - 2025-07-29 12:06 -0400
  Re: Creating new files of indeterminate sort? Philip Herlihy <nothing@invalid.com> - 2025-07-28 13:40 +0100
    Re: Creating new files of indeterminate sort? knuttle <keith_nuttle@yahoo.com> - 2025-07-28 12:43 -0400
  Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-28 14:49 +0200
  Re: Creating new files of indeterminate sort? "Alan K." <alan@invalid.com> - 2025-07-28 08:53 -0400
  Re: Creating new files of indeterminate sort? Herbert Kleebauer <klee@unibwm.de> - 2025-07-28 17:01 +0200
    Re: Creating new files of indeterminate sort? "R.Wieser" <address@is.invalid> - 2025-07-28 17:21 +0200

csiph-web