• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

finding out the file properties

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic