Explorer - options for files without extensions


Skeptic Mike

Well-known member
Member
VIP
Local time
8:13 PM
Posts
150
OS
Windows 11 25H2 Pro Build 26200
I've not seen this discussed before. As well as setting options for specific file types, you can do this for files with no extension. I haven't found any reference to this in Microsoft documentation, but Raymond Chen mentioned this in 2007. What is the difference between the Folder and Directory (and other special) progids? - The Old New Thing

It seems to work perfectly well in Windows 11. You shouldn't see many files like this, most examples I have come from source code downloads, such as makefiles or documentation.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.]
"PerceivedType"="text"

My interest is simply to read the file using the built-in text preview function in explorer. Setting the PerceivedType to text gets you this, as it does for any file type that doesn’t have a hard coded PerceivedType. Obviously you can set up normal file associations if you want.
 

My Computers My Computers

  • At a glance

    Windows 11 25H2 Pro Build 26200i3-1215U8GB
    OS
    Windows 11 25H2 Pro Build 26200
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI PRO ADL-U Cubi 5 (MS-B0A8)
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Sony 43" 4k TV
    Screen Resolution
    3840x2160
    Hard Drives
    250GB NVMe M.2 PCIe Gen 3 SSD
    PSU
    External 65W
    Case
    Mini PC
    Browser
    FireFox
    Antivirus
    MS
  • At a glance

    Windows 11 Pro 25H2Intel i3-910016GB DDR4
    Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 3070 SFF
    CPU
    Intel i3-9100
    Memory
    16GB DDR4
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung 500GB nvMe
    Case
    Dell small form factor
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Antivirus
    MS Defender
  • Like
Reactions: OAT
I think the problem is Windows doesn't have the equivalent of /etc/magic for guessing at file types, when there is no file extension.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
I've not seen this discussed before. As well as setting options for specific file types, you can do this for files with no extension. I haven't found any reference to this in Microsoft documentation, but Raymond Chen mentioned this in 2007. What is the difference between the Folder and Directory (and other special) progids? - The Old New Thing

It seems to work perfectly well in Windows 11. You shouldn't see many files like this, most examples I have come from source code downloads, such as makefiles or documentation.

My interest is simply to read the file using the built-in text preview function in explorer. Setting the PerceivedType to text gets you this, as it does for any file type that doesn’t have a hard coded PerceivedType. Obviously you can set up normal file associations if you want.
Thanks, very useful for the hosts file.
 

My Computers My Computers

  • At a glance

    All Branches but ReleaseAMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 232 GB DDR5Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB...
    OS
    All Branches but Release
    Computer type
    Laptop
    Manufacturer/Model
    Acer Nitro ANV15-51
    CPU
    AMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 2
    Motherboard
    Sportage_RBH
    Memory
    32 GB DDR5
    Graphics Card(s)
    Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB GDDR6
    Sound Card
    AMD/Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (15.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9 144Hz
    Hard Drives
    KINGSTON OM8SEP4512Q-AA 1TB
    Western Digital 256GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 1GB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev-Chrome Dev
    Antivirus
    Windows Defender
  • At a glance

    Windows 11 BetaAMD A9-94208 GB of DDR4AMD Radeon R5
    Operating System
    Windows 11 Beta
    Computer type
    Laptop
    Manufacturer/Model
    Asus X751BP
    CPU
    AMD A9-9420
    Memory
    8 GB of DDR4
    Graphics card(s)
    AMD Radeon R5
    Screen Resolution
    1600x900
    Hard Drives
    Seagate 1 TB
Back
Top Bottom