Adding items to the New context menu.


  1. Posts : 2
    Windows 10.2004 Professional RTM x64
       #1

    Adding items to the New context menu.


    I have been trying to get a .php file in the new context menu with no luck. Even without the template file, it still does not work. Does anyone have any idea on how to do this? I have followed several procedures and none of them work.


    Windows 10 Pro RTM x64 V.2004
      My Computer


  2. Posts : 5,299
    Windows 11 Pro 64-bit
       #2

    With this batch script you can add .php to the New Context Menu Item in Windows.
    Adding items to the New context menu. Attached Files
      My Computer


  3. Posts : 2
    Windows 10.2004 Professional RTM x64
    Thread Starter
       #3

    FreeBooter said:
    With this batch script you can add .php to the New Context Menu Item in Windows.
    Thank you for your response, but I figured it out on my own. I finally hit upon the right registry entries to make it work at the system level. Here's the registry file:

    Code:
    Windows Registry Editor Version 5.00
    
    ; Adds PHP files with a template file to the new context menu.
    
    
    [HKEY_CLASSES_ROOT\.php]
    @="phpfile"
    
    [HKEY_CLASSES_ROOT\.php\OpenWithProgids]
    "VSCode.php"=""
    
    [HKEY_CLASSES_ROOT\.php\ShellNew]
    "NullFile"="1"
    "FileName"=hex(2):25,00,50,00,72,00,6F,00,67,00,72,00,61,00,\
      6D,00,44,00,61,00,74,00,61,00,25,00,5C,00,4D,00,69,00,63,00,72,00,6F,00,\
      73,00,6F,00,66,00,74,00,5C,00,57,00,69,00,6E,00,64,00,6F,00,77,00,73,00,\
      5C,00,54,00,65,00,6D,00,70,00,6C,00,61,00,74,00,65,00,73,00,5C,00,74,00,\
      65,00,6D,00,70,00,6C,00,61,00,74,00,65,00,2E,00,70,00,68,00,70,00,00,00
    
    [HKEY_CLASSES_ROOT\phpfile]
    @="PHP Script File"
    It seems that you have to add a new filetype reference in the registry and point the extension to it. Then it will work. For the file path/name, I used Old Timers Registry Hex Converter which can be found here: Before You Download or Visit External Websites... • Raymond.CC

    This is different than in Windows XP as it seems that Windows 10 puts more emphasis on user preferences than system defaults.
      My Computer


  4. Posts : 5,299
    Windows 11 Pro 64-bit
       #4

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:55.
Find Us




Windows 10 Forums