Get exe description using java

Posted on 2007-11-27
Last Modified: 2012-06-27
Using Java I would like to get the Description name that appears in an exe file when you right click it and open the properties.

For instance C:\Windows\notepad.exe. If you right click on the properties the Description name is Notepad.

Thanks in advance.
Question by:harlanhugh
  • 2
  • 2
LVL 26

Expert Comment

ID: 20363674
I don't thunk you can do that in Java... may be you can try with JNI or Runtime.exec if there is a windows command for getting the description of a file...
LVL 16

Expert Comment

ID: 20363856
i have never come across such a command in MS DOS or a example in Java so I dont know if this can be done.  Can we ask why you want to get the files info?

Author Comment

ID: 20363899
Basically I have a Java application that shows files, folders and URL's. I would like my program to mimic as close as possible to what you see in Windows (and eventually the Mac and possibly Unix) when you right click on a file, folder or URL.
LVL 16

Accepted Solution

ellandrd earned 500 total points
ID: 20364118
>>I would like my program to mimic as close as possible to what you see in Windows (and eventually the Mac and possibly Unix) when you right click on a file, folder or URL.

I dont think Java can mimic that sort of stuff.  I have never seen such classes or libraries that do this.  I have just searched the online database of JDK SDK classess and found nothing.  The best bet would be to build your own custom context menu but even at that your not going to fully mimic the options for all OS's.  Sorry


Author Comment

ID: 20424379
Thanks for your time.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -ano | find "8000" and taskkill /f /pid 2984 3 84
couple of eclipse 5 46
Setup GlassFish 4 22
Netbeans and org.apache.commons.lang3 issue 3 4
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

830 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