Link to home
Start Free TrialLog in
Avatar of rrz
rrzFlag for United States of America

asked on

Add to New menu

I am on XP. When I right click on my desktop and select New, I want to be able to create a JSP file.  Currently what I do is to select "Text Document" and then rename the file and change the extension.   For example, I change  abc.txt  --> abc.jsp  .  But I am getting tried of this process.  How can I add to the New menu to directly create abc.jsp file ?  A JSP file is just  plain text file.
SOLUTION
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rrz

ASKER

Lee, thank you for giving some of your time. I tried maually(no luck) and I tried with TweakUI.  In my registry the ShellNew key was added to the the .jsp key  and the in the right pane the name "fileName"  with type "REG_SZ" and Data of "920953.jsp"   is displayed.  I looked in  C:\Documents and Settings\All Users\Templates    and  the file 920953 is there.  I restarted my machine several times. No luck yet.  I have XP SP2.   What am doing wrong ?
Avatar of rrz

ASKER

>and  the file 920953 is there  
I meant  to say   920953.jsp  is there.
I'm not sure just what you did.  This link from the page I told you about seems to me to be the easiest to follow:

http://windowsxp.mvps.org/shellnewadd.htm
>>  restarted my machine several times. No luck yet

Hi, rrz@871311

Is the file associated correctly with an application? And if so, which application is it?

Click Start, Run and type:

CMD /K REG QUERY HKCR\.JSP

Press ENTER.

Copy the output, and paste the information along with your reply.
Avatar of rrz

ASKER

Lee, I did read that last page you posted. I tried using NullFile manually and then I used TweakUI to use FileName as I described in my last post.  But, no luck yet.
sramesh2k, thank you for giving me some of your time.
>Is the file associated correctly with an application?
I am using  an old program called "Programmer's File Editor" ( http://www.lancs.ac.uk/people/steveb/cpaap/pfe/default.htm )I have using it for 8 years and I never felt the need to change to something else.  I have gone to Folder Options,File Types and  I use PFE for a lot of different files. I use it open to JSP files and java source files. I also use it to edit HTML files, property files and XML files.
Here is the output that you requested( PFE32 is what I am using).
! REG.EXE VERSION 3.0

HKEY_CLASSES_ROOT\.JSP
    <NO NAME>   REG_SZ  PFE32

HKEY_CLASSES_ROOT\.JSP\ShellNew
Hi rrz@871311,

Interesting! 920953.jsp is not shown in the output?

Download FileExtInfo from here:

FileExtInfo - View the association settings for a file type easily:
http://windowsxp.mvps.org/fileextinfo.htm

Unzip and run the tool. Select .JSP from the listing and generate a report. Copy and paste the contents in your reply. This report will have the complete details that I'm looking for.
Avatar of rrz

ASKER

[HKEY_CLASSES_ROOT\.JSP]
@="PFE32"

[HKEY_CLASSES_ROOT\.JSP\ShellNew]
"FileName"="920953.jsp"


[HKEY_CLASSES_ROOT\PFE32]
@="Programmer's File Editor (32-Bit)"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008
"AlwaysShowExt"=""

[HKEY_CLASSES_ROOT\PFE32\shell]
@=""


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.JSP]
"Application"="PFE32.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.JSP\OpenWithList]
"a"="javaw.exe"
"MRUList"="ghebfdca"
"b"="eclipse.exe"
"c"="NOTEPAD.EXE"
"d"="WORDPAD.EXE"
"e"="iexplore.exe"
"f"="gvim.exe"
"g"="PFE32.EXE"
"h"="TweakUI.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.JSP\OpenWithProgids]
"jsp_auto_file"=hex(0):
"PFE32"=hex(0):
Avatar of rrz

ASKER

I just want to create a empty file. So, I guess NullFile or FileName will do.  
I now see where the problem is. Pls post the full path to PFE32.EXE, and I'll create a REG file for you.
Avatar of rrz

ASKER

C:\pfe\PFE32.exe
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rrz

ASKER

Success. Thank you, Lee and sramesh2k.  I am impressed with your expertise. I increased the points because this was more work than I originally thought. I learned a little more about windows and that is always good. In the future should I always put applications in  C:\Program Files    ?   Would that have made this easier ?
Hi rrz,

The problem is that the file class was not registered completely (no shell\verb present). The location of the exe is not the problem.
Avatar of rrz

ASKER

Thanks, sramesh2k.