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.
Windows XP

Avatar of undefined
Last Comment
rrz
SOLUTION
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of rrz
rrz
Flag of United States of America image

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
rrz
Flag of United States of America image

ASKER

>and  the file 920953 is there  
I meant  to say   920953.jsp  is there.
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

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
Avatar of sramesh2k
sramesh2k
Flag of India image

>>  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
rrz
Flag of United States of America image

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
Avatar of sramesh2k
sramesh2k
Flag of India image

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
rrz
Flag of United States of America image

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
rrz
Flag of United States of America image

ASKER

I just want to create a empty file. So, I guess NullFile or FileName will do.  
Avatar of sramesh2k
sramesh2k
Flag of India image

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
rrz
Flag of United States of America image

ASKER

C:\pfe\PFE32.exe
ASKER CERTIFIED SOLUTION
Avatar of sramesh2k
sramesh2k
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of rrz
rrz
Flag of United States of America image

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 ?
Avatar of sramesh2k
sramesh2k
Flag of India image

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
rrz
Flag of United States of America image

ASKER

Thanks, sramesh2k.
Windows XP
Windows XP

Microsoft Windows XP is the sixth release of the NT series of operating systems, and was the first to be marketed in a variety of editions: XP Home and XP Professional, designed for business and power users. The advanced features in XP Professional are generally disabled in Home Edition, but are there and can be activated. There were two 64-bit editions, an embedded edition and a tablet edition.

119K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo