D
David McDivitt
I've read numerous things about adding items to the "new" right-click sub
menu in explorer. I have WinXP SP 2. I want to create new php files by right
clicking in the folder. I wrote a VB program that adds two items to the
right-click menu: Open in Browser, and Open with Notepad. If I choose either
of those, the VB program runs, computes the IIS virtual path and opens the
php file through the browser, or uses what's found at txt/shell/open/command
and opens the php file with that. If I can write a VB program to do that,
surely I should be able to make the "new" sub menu work like I want.
At hkey_classes_root I added .php\ShellNew and put the value name "NullFile"
with a blank string value. That did not work. Even after a reboot, my new
item would not appear in the "new" menu. The file class for .php is
"phpfile", so I added .php\phpfile\ShellNew, also with a "NullFile" value
name. Some instructions I found said to do it that way. That didn't work
either.
TweakUI for XP does not have the "new" tab. So I found TweakUI for Win98 and
used that. In TweakUI for 98, in the "new" tab, lo and behold it has "php"
listed. If I toggle "php" on and off while looking in the registry, it
changes the ShellNew key I added to ShellNew- and back again. If it shows up
in TweakUI for 98, why doesn't it work in the explorer "new" sub menu?
menu in explorer. I have WinXP SP 2. I want to create new php files by right
clicking in the folder. I wrote a VB program that adds two items to the
right-click menu: Open in Browser, and Open with Notepad. If I choose either
of those, the VB program runs, computes the IIS virtual path and opens the
php file through the browser, or uses what's found at txt/shell/open/command
and opens the php file with that. If I can write a VB program to do that,
surely I should be able to make the "new" sub menu work like I want.
At hkey_classes_root I added .php\ShellNew and put the value name "NullFile"
with a blank string value. That did not work. Even after a reboot, my new
item would not appear in the "new" menu. The file class for .php is
"phpfile", so I added .php\phpfile\ShellNew, also with a "NullFile" value
name. Some instructions I found said to do it that way. That didn't work
either.
TweakUI for XP does not have the "new" tab. So I found TweakUI for Win98 and
used that. In TweakUI for 98, in the "new" tab, lo and behold it has "php"
listed. If I toggle "php" on and off while looking in the registry, it
changes the ShellNew key I added to ShellNew- and back again. If it shows up
in TweakUI for 98, why doesn't it work in the explorer "new" sub menu?