0

I am currently working on a file browser in java. The native Windows Explorer displays further options in the context menu if you have installed programs like Kaspersky. You can scan a file for viruses using the context menu. Now I want to have the same option in my program.

How do I get possible file options from other programs? Is there a way to make this platform independent?

null
  • 575
  • 4
  • 12

1 Answers1

2

I doubt that there is a platform independent solution for your problem as the context menu depends on desktop environments (Gnome, KDE, Xfce, Windows) and everywhere it's implemented differently (registry files, nautilus scripts, etc).

In Windows, you can find the context menu items in registry:

HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers

how to read registry is described in this thread.

Community
  • 1
  • 1
Václav Struhár
  • 1,739
  • 13
  • 21