Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

Get exe description using java

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.
0
harlanhugh
Asked:
harlanhugh
  • 2
  • 2
1 Solution
 
ksivananthCommented:
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...
0
 
ellandrdCommented:
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?
0
 
harlanhughAuthor Commented:
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.
0
 
ellandrdCommented:
>>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

Ellandrd
0
 
harlanhughAuthor Commented:
Thanks for your time.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now