Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

finding out the file properties

 
pradeep samudrala
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to find out the properties of file(exe file)like version number,size on disk and etc.can any body help me in this regard..
thanks in advance...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java concentrates all sorts of file related methods in the java.io.File class. That is where you should start looking.

For details that File can't provide you (like version number) you will probably have to go to operating system specific methods.

Bill
 
pradeep samudrala
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you reply.but through File class we can able to find out some properties like is it hidden or not.but i want to find out the properties like File version,author,title,disk on size .i couldn't found any methods in the standard api.Please help me if any body knows it..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.i couldn't found any methods in the standard api


There is a very good reason for that - the designers intend Java to run on as many operating systems as possible, therefore the standard library only contains functions that can reasonably be expected to work everywhere.

You are asking about file properties that are NOT industry standards or portable across multiple operating systems. You are going to have to dig into the details of each type of file format on a case by case basis.

This web site has collected many of the common formats - if this was my problem I would start my search there.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic