Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add an entry to windows right click popup menu

843807Sep 25 2002 — edited Oct 21 2002
Hi

Just want to know how i should add any entry to the popup menu which appears when we right click a directory in the windows explorer.

Is it like adding a shortcut or how i should do that ?
Please help

Thanks

Comments

843807
Not a good idea to try doing that in Java. Java is designed to run on other operating systems so you can't do platform specific things like that.
843807
Hi

I was thinking if i could call some rundll32.exe or some function through runtime.exec() which would add the entry in the popup menu

So that i can do that operation.

Honestly speaking no idea of those rundll32 functions also.

But why don't java gurus have some answer for this ?
843807
You can add functions to filestypes using the windows explorer.
Tools- folder options -file types.
Here you can add your functions. This will be added in the registry.
SO if you try it first the direct way and then look at the result in the registry you could also do it using a java programm. but this will only work in windows and adding somting in the registry it a bit tricky and dangerus.


wouter
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 18 2002
Added on Sep 25 2002
3 comments
117 views