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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
best (free) software to access postgres db (java) 1 33
@SBGen Method 3 38
Java / Linux and Regular Expressions 11 71
fibonacci ten numbers 4 30
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now