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
- Create a file named "addFileType.reg"
- 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'"
- Run this file as admin
- 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.