body-element
  • 29 . 09 . 2021
Webcube blog

How To Add New File Type in "Right Click> New"

The steps below show you how to create a new PHP file using "Right Click" then selecting "new". You may use it for any file type by changing 'php' to your file type in step two

  1. Create a file named "addFileType.reg"
  2. in that file paste the following code

    Windows Registry Editor Version 5.00

     

    [HKEY_CLASSES_ROOT\.php]

    @="phpfile"

     

    [HKEY_CLASSES_ROOT\.php\ShellNew]

    "FileName"="NullFile.php"

     

    [HKEY_CLASSES_ROOT\phpfile]

    @ = "PHP File"

    "FriendlyTypeName"="@='PHP File'"

  3. Run this file as admin
  4. Refresh and you will see your file type when you right click on desktop or any folder and move your mouse to "New".

Once this is done, simply associate .php files with your favorite editor. 

body-element

Subscribe for Newsletter

Don't miss out on the latest news and updates! Subscribe to our newsletter and stay informed about our services, promotions, and exclusive content.