On January 27th, this site will be read-only as we migrate to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,584 Users
  • 2,269,760 Discussions


Add an entry to windows right click popup menu

843807 Member Posts: 46,582
edited Oct 21, 2002 10:02AM in Java Desktop Applications

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



  • 843807
    843807 Member Posts: 46,582
    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
    843807 Member Posts: 46,582

    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
    843807 Member Posts: 46,582
    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.

This discussion has been closed.