How to add a command to right click in Windows Explorer

J

JC Home

Can somebody tell me how to add a system command (javac) to the right click
drop down? I've already set the path and verified it works from the command
line, but would like to compile from Explorer.

Thanks!
 
W

Wesley Vogel

Add or remove entries in the New objects list (ShellNew)
http://windowsxp.mvps.org/shellnew.htm

Add items to the New menu (aka ShellNew entries)
http://windowsxp.mvps.org/shellnewadd.htm

Manage the context-menu entries for folders, drives and Namespace objects
http://windowsxp.mvps.org/context_folders.htm

Customize Context Menus
http://www.annoyances.org/exec/show/article02-026

Customize the right click context menus
http://www2.technobabble.com.au/article182.html

Creating Context Menu Handlers
http://msdn.microsoft.com/library/d...ing/extensionhandlers/contextmenuhandlers.asp

Customizing Right-Click Menu Options in Windows
http://www.jfitz.com/tips/rclick_custom.html

Or here...
http://www.kellys-korner-xp.com/xp_c.htm

Scroll down to:
Context Menu - Customizing Windows Explorer Context menu
(right click menu in windows explorer)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
H

Harlin Seritt

Hi JC,

You can do it like this:

1. Pull up Explorer (My Computer or My Documents whichever).

2. At the top, click Tools and then Folder Options.

3. Click the File Types tab.

4. In the listbox choose the file type extension (for Java I guess it
would be *.java).

5. Click the Advanced button below the listbox near the command buttons
(OK and Cancel, Apply etc.).

6. Under the Actions listbox click the New button.

7. Under Action in the textbox type whatever you'd like the command to
show as (Java Compile or whatever).

8. Under Application textbox type in Path to application you'd like to
launch like c:\Path\to\Javac.exe and then an argument like -u %F. (You
may need to run javac /? to get a list of arguments that go with it as
well).

9. Close it out and right click a *.java file and see if it works. Let
me know how it works!

Harlin Seritt
 
J

JC Home

I tried this, and I did see a command window pop up, but it did not compile.
I think it needs the full filename and extension passed to it. Normally, it
would be "javac helloworld.java". Is there some way to have it pass the
filename and extension?

Thanks

Jeff C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top