Solved Removing 'Bitmap image' from 'New' context menu...


Based on all the info posted so far & my own experiments, I think that the Context menu, New, Bitmap image entry can be removed automatically using a batch file that calls NirSoft RegScanner.
I've used more time than I had intended on this and I've got to go because my stomach is now convinced that my throat has been cut and is demanding retribution.

I've only experimented with Stage 1 so far but I've added comments about the later Stages below so you can understand what I'm on about.

Stage 1 These commands, which need to be run as Admin, produce readily readable output files. Either could be considered, one might turn out to be easier to work with in the sub-routine within Stage 2.
RegScanner.exe /cfg "H:\TestFolder\regscanner.cfg" /stext "H:\TestFolder\STXTOutput.txt"
RegScanner.exe /cfg "H:\TestFolder\regscanner.cfg" /sxml "H:\TestFolder\sxmlOutput.xml"
Both commands produce an output that identifies the Registry Key & Name entry/entries that need to be worked on in this particular computer.
- A manual run of the RegScanner.exe user interface is needed beforehand so an initial, generic, default Cfg file can be saved & copied to a convenient folder.​
- Then, a specific Cfg file needs to be saved when running the RegScanner user interface to include the ShellNewDisplayName_Bmp search term & selecting only the HKCR Registry Hive.​
- That specific Cfg file can then be copied to, say, the folder that the batch file is to be run from.​
- The initial, generic, default Cfg file can then be copied back to the RegScanner folder so that the tool not condemned to always run the search required for this particular job. [I think merely deleting all Cfg files from the RegScanner.exe folder will also achieve the same end.]​

Stage 2 The output file can be read using a For command in the form
For /f "usebackq tokens=*" %%X in ("%SourceFile%") do Call :Processing "%%X"
in which the Processing sub-routine
- checks that results have been obtained [my Win11-upgraded-from-Win10 computer does not have any of these HKCR Keys so will return no real results].​
- checks that the rest of the Data : entry in both Keys are not blank or, for the xml version, that the <data/> entry exists in both because they mean the job had already been done​
- if the job has not already been done for either entry, extracts the Registry Key : or <registry_key> lines and the Name : or <name> lines then tidies up those values by removing superfluous text from them.​
It is use of the For command that allows the script to cope with both single & multiple HKCR Keys in the results.
- I always use sub-routines for processing For command results. I find this makes for code that can be developed incrementally, that can be experimented with safely, that is readily understandable and that is straightforwards to debug.

Stage 3 The single or multiple Registry key & Name entries are then used in a Reg Delete command that removes the Data entry for the found Keys-Names.


I don't know when I will have time to return to this topic.
  • I don't feel like treating this as a high priority but I do believe it is all feasible.
  • I really do not like using intermediate files such as the .txt / .xml files generated in Stage 1 but that's how the NirSoft RegScanner tool is designed to work in its command line mode.
  • I use scripts that can be run in Windows 10 & 11 without alternation so, for this one, I'd add in an OS check at the start so I can escape if the OS is Windows 10.
  • I store all my scripts, such as this batch file, and all my portable utilities, such as RegScanner, within subfolders of C:\Tools, a folder I create on all my computers for this purpose. Set up my C:\Tools folder - TenForums



All the best,
Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
@Try3

"I don't feel like treating this as a high priority ...."

You've got that right. I think the amount of work you've put into this is above and beyond.

Thanks for the research and the write-up. It'll be easy with your instructions, if anyone cares enough to actually do it.
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i7-9700 @ 3.00GHz
    Motherboard
    Lenovo 3132
    Memory
    32GBDDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    1 x Samsung 970 EVO PLUS 500GB NVMe SSD, 1 x WD_BLACK SN770
    250GB NVMe SSD (OS and programs), 1 x WD_BLACK SN770
    500GB NVMe SSD (Data)
    Case
    Lenovo SFF
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome, sometimes Firefox
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80GHz
    Motherboard
    Lenovo 3132
    Memory
    32GB DDR4 @ 2600MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 x Samsung 970 EVO PLUS NVMe; 1 x Samsung 980 NVMe SSD
    Case
    Lenovo Think Centre SFF
    Mouse
    LogiTech M510 wireless
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender, beautiful together
Dear Panaho,

Thanks for your explanation on how to remove the "Bitmap image" from the 'New' context menu on my Windows 11.
It works for me!
Best regards,

Johan.
 

My Computer

System One

  • OS
    Windows 11
It works for me!
I think you mean the method in post #71.
It also worked for me but do note the ensuing discussion that established that there can be two entries that match what panaho searched for and either could be the one that needs to be removed [removing both instances seems to be safe].


All the best,
Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Denis,

Yes, I mean the method in post#73.
I Indeed found 2 entries for the "ShellNewDisplayName_Bmp", and I both cleared them.

Johan.
 

My Computer

System One

  • OS
    Windows 11
I never understood why anyone would need to create a blank bitmap file on their desktop!?!?!? 🤷‍♂️
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
@Try3 and @Johan99

You both meant post #71, not post #73, which is Denis's routine (and very valuable) advice to newcomers to this forum. Post #71 is the corrected version of the very simple procedure. Panaho had made a typing mistake in his original write-up of the procedure, and corrected it (with a little help from his friends).
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i7-9700 @ 3.00GHz
    Motherboard
    Lenovo 3132
    Memory
    32GBDDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    1 x Samsung 970 EVO PLUS 500GB NVMe SSD, 1 x WD_BLACK SN770
    250GB NVMe SSD (OS and programs), 1 x WD_BLACK SN770
    500GB NVMe SSD (Data)
    Case
    Lenovo SFF
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome, sometimes Firefox
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80GHz
    Motherboard
    Lenovo 3132
    Memory
    32GB DDR4 @ 2600MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 x Samsung 970 EVO PLUS NVMe; 1 x Samsung 980 NVMe SSD
    Case
    Lenovo Think Centre SFF
    Mouse
    LogiTech M510 wireless
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender, beautiful together
You both meant post #71, not post #73
Yes, post #71. Thanks. I got the link right but not the text.
I have obviously not had enough Cointreau today so I'll logoff and deal with that problem right now.

Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
You're welcome, and I'm jealous. It's only soon-after-lunch here, so I'm going to exercise some will power until it's 5:00 (well, in Newfoundland).
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i7-9700 @ 3.00GHz
    Motherboard
    Lenovo 3132
    Memory
    32GBDDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    1 x Samsung 970 EVO PLUS 500GB NVMe SSD, 1 x WD_BLACK SN770
    250GB NVMe SSD (OS and programs), 1 x WD_BLACK SN770
    500GB NVMe SSD (Data)
    Case
    Lenovo SFF
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome, sometimes Firefox
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80GHz
    Motherboard
    Lenovo 3132
    Memory
    32GB DDR4 @ 2600MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 x Samsung 970 EVO PLUS NVMe; 1 x Samsung 980 NVMe SSD
    Case
    Lenovo Think Centre SFF
    Mouse
    LogiTech M510 wireless
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender, beautiful together
BMP

WIN + R
Write "regedit"
Enter
CTRL+F
Write "ShellNewDisplayName_Bmp"
Enter
Find @{Microsoft.Paint_()...()_x64__8wekyb3d8bbwe? ms-resource://Microsoft.Paint/Resources/ShellNewDisplayName_Bmp}
Context menu
Modify
Delete "Value data"


TXT

WIN + R
Write "regedit"
Enter
CTRL+F
Write "/ShellNewDisplayName_Txt"
Enter
Find @{Microsoft.Paint_()...()_x64__8wekyb3d8bbwe? ms-resource://Microsoft.Paint/Resources/ShellNewDisplayName_Bmp}
Context menu
Modify
Delete "Value data"


It works for me :wink:


Regards.

It took me a long time to find this! Thanks.

FYI, I had no txt entry. Probably because I uninstall notepad right after installing windows. They ruined it. I used the old fashioned way to add a shellnew key to .txt and pointed it to notepad++. Worked fine.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHZ
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics Card(s)
    MSI Gaming GeForce RTX 4070 12GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 HP LA1911
    Screen Resolution
    2560x1440 and 1280x1024
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (150GB System / 850GB More Games)
    Crucial CT2000MX500SSD1 2TB (Games)
    Western Digital Green WD40EZRX 4TB (Data/Backup)
    Western Digital Blue WD60EZAZ 6TB (Storage)
    Western Digital Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master Elite 430 Mid Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 1x120mm out + 2x120mm in + Isolated PSU Standard upward flow
    Keyboard
    Microsoft Natural Elite White PS/2 (with usb adapter)
    Mouse
    Microsoft D67-00001 Trackball Optical Mouse (rebuilt with ceramic bearings)
    Internet Speed
    350Mb/s hard wired
    Browser
    Edge, FF, Tor
    Antivirus
    Win Def
    Other Info
    Razer Tartarus V2 Gaming Keypad
    Logitech Z-5500 5.1 THX 505w (Orignal 10" Sub with (Fr, Rr, Ctr) Polk Audio satellites
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHz FCLGA1700 (Gen 14)
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics card(s)
    MSI Gaming GeForce RTX 3060Ti 8GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 Samsung TU7000 55" TV
    Screen Resolution
    2560x1440 and 3840x2160
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (System)
    Samsung 980 PRO SSD 2TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (Games)
    Crucial CT1000MX500SSD1 1TB (More Games)
    WD Green WD20EZRX 2TB (Data/Backup)
    WD Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master N400 NSE-400-KKN2 Mid-Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + 2x120mm + Isolated PSU Reverse flow front exhaust
    Mouse
    MSI G20 Elite and Logitech MK345 Wireless
    Keyboard
    Logitech MK345 Wireless
    Internet Speed
    350Mb/s hard wired
    Browser
    Edge
    Antivirus
    Win Def
    Other Info
    Razer Tartarus Gaming Keypad
    MSI GC30 Gaming Controller (Xbox style)
It took me a long time to find this! Thanks.

FYI, I had no txt entry. Probably because I uninstall notepad right after installing windows. They ruined it. I used the old fashioned way to add a shellnew key to .txt and pointed it to notepad++. Worked fine.
That's the broken version, it's looking for a bmp entry where it should be looking for txt in the second section.
 

My Computer

System One

  • OS
    WIN 10 Pro
That's the broken version, it's looking for a bmp entry where it should be looking for txt in the second section.
Yeah, i saw that. It was just the .bmp I was fighting with. The info here let me win.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHZ
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics Card(s)
    MSI Gaming GeForce RTX 4070 12GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 HP LA1911
    Screen Resolution
    2560x1440 and 1280x1024
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (150GB System / 850GB More Games)
    Crucial CT2000MX500SSD1 2TB (Games)
    Western Digital Green WD40EZRX 4TB (Data/Backup)
    Western Digital Blue WD60EZAZ 6TB (Storage)
    Western Digital Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master Elite 430 Mid Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 1x120mm out + 2x120mm in + Isolated PSU Standard upward flow
    Keyboard
    Microsoft Natural Elite White PS/2 (with usb adapter)
    Mouse
    Microsoft D67-00001 Trackball Optical Mouse (rebuilt with ceramic bearings)
    Internet Speed
    350Mb/s hard wired
    Browser
    Edge, FF, Tor
    Antivirus
    Win Def
    Other Info
    Razer Tartarus V2 Gaming Keypad
    Logitech Z-5500 5.1 THX 505w (Orignal 10" Sub with (Fr, Rr, Ctr) Polk Audio satellites
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHz FCLGA1700 (Gen 14)
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics card(s)
    MSI Gaming GeForce RTX 3060Ti 8GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 Samsung TU7000 55" TV
    Screen Resolution
    2560x1440 and 3840x2160
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (System)
    Samsung 980 PRO SSD 2TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (Games)
    Crucial CT1000MX500SSD1 1TB (More Games)
    WD Green WD20EZRX 2TB (Data/Backup)
    WD Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master N400 NSE-400-KKN2 Mid-Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + 2x120mm + Isolated PSU Reverse flow front exhaust
    Mouse
    MSI G20 Elite and Logitech MK345 Wireless
    Keyboard
    Logitech MK345 Wireless
    Internet Speed
    350Mb/s hard wired
    Browser
    Edge
    Antivirus
    Win Def
    Other Info
    Razer Tartarus Gaming Keypad
    MSI GC30 Gaming Controller (Xbox style)

Latest Support Threads

Back
Top Bottom