Solved

Can I just create a new .py, .java file the same way I create a new .php, .inc file

Posted on 2014-07-18
11
433 Views
Last Modified: 2014-08-12
using windows7

http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/Q_28417626.html
Previous question I can now use mouse right click to create both new .inc and .php file

using this tutorial
http://www.askvg.com/how-to-add-remove-items-from-new-menu-in-windows/

but when I try with
.java
.py

and restart
no menu item

Is there another step?
0
Comment
Question by:rgb192
  • 6
  • 3
11 Comments
 

Author Comment

by:rgb192
ID: 40205862
shell new handler exe
.java and .py have no description (second column) but .php and .inc have description

.java and .py have no description (second column)
0
 
LVL 20

Expert Comment

by:Mark Brady
ID: 40206345
I would assume there is another part of the registry key you need to add in order to create a description but I'm not sure.
0
 

Author Comment

by:rgb192
ID: 40206669
I followed the same instructions for
.php
.inc
.py
.java

but only the first two have a description.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 20

Expert Comment

by:Mark Brady
ID: 40208684
Well where did you put the description for the first tow?
0
 

Author Comment

by:rgb192
ID: 40209432
I didnt add description.
0
 

Author Comment

by:rgb192
ID: 40212568
How can I add description.

And will this be the answer?
0
 
LVL 20

Expert Comment

by:Mark Brady
ID: 40212893
Ok well it seems that Windows probably has a default description for each filetype so if you are adding a filetype that it does not recognize then it will not know what to add for the description. I suggest having a moderator move this question into Windows under operating systems or somewhere that some smart windows people can answer this question.
0
 

Author Comment

by:rgb192
ID: 40222575
I created a new description for ShellNew key for .bat
description is Windows Batch File
and
I can open by using right click
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 500 total points
ID: 40251188
Do  you have any applications installed on your system that handle .java and .py files? The regkey or ShellNewHandler create will only work if you have an application that will handle your .java / .py file.

For example: I have the Enthought Python distribution installed but I don't have a New->Python File menu item.

After I've created the add_py.reg below and imported it (and rebooted), I have a Python File item in the menu.
new Python FileTo add:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.py\ShellNew]
"NullFile"=""

Open in new window


To remove:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.py\ShellNew]
"NullFile"=""

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 40257266
Do  you have any applications installed on your system that handle .java and .py files? The regkey or ShellNewHandler create will only work if you have an application that will handle your .java / .py file.

Currently python works, java does not (maybe after computer restart)

I did not use the code in code blocks but will re-ask this question if I want a new file that is not working after assigning a program and a computer restart.

Thank you.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question