Solved

File Property -- Version.

Posted on 2004-08-11
15
200 Views
Last Modified: 2013-12-18
Is it possible to get the Version property of a file? I was able to get the file's general properties like path, size...etc., where I used Openfiledialog.
Thanks.
0
Comment
Question by:cyle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 3
  • +1
15 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11771990
What is a Version property? It is not something supported by the O/S so I assume you're talking about Word files or so. In that case, you'll have to ask Word to divulge the Version number. Or am I terribly mistaken??
0
 

Author Comment

by:cyle
ID: 11772048
The reason why I need it, is that we display .EXE files. Now this files when right click -- properties--one of the tabs would be version. This tab is not displayed on .DOC or other files.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11772158
Maybe it's possible, but I think you'll need an external utility to get it. The Windows Explorer clearly has the facility to open a .EXE file and to search for the Version-information store in there. The other properties you mention are NOT in the file but in the Windows directory itself. I don't know if the version info is also stored in the Registry, but not all executables appear in the Registry.
0
Independent Software Vendors: 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!

 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11772163
Version tracking is mostly for dll and exe or system files and that too it is a property which is set by developer...whereas Doc files doesn't carry those information...But there are other custom property that can be set to a doc file, but not created automatically

~Hemanth
0
 

Author Comment

by:cyle
ID: 11772257
Can you please point me to this custom properties?
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 11773597
In what context are you trying to do this, and why?
0
 

Author Comment

by:cyle
ID: 11774388
In the system I am currently creating the user clicks on a button browse where they can choose what file they need. I then display the properties of this file that they chose which currently only the general properties. The user needs this for their testing purposes.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11774673
The custom property is on the Custom tab of the file...

0
 
LVL 31

Expert Comment

by:qwaletee
ID: 11778280
The File Browser window (the same one used to choose a file to attach, or an ID to switch to, or browser databases... all the identical dialog) is really just a little WIndows Explorer window.  As such, you can right-click a file and choose properties (or highlight and hit control-enter), which will display the full Windows Explorer properties box.  For a DLL or EXE file, there will be a VERSION tab that includes copyright info, and fields for such things as Version Number.

Is that what you were asking about?  If not, I have no clue what you are even saying.
0
 

Author Comment

by:cyle
ID: 11787156
Based on what you see by right clicking on the file, can you get the value in the version tab of that file you are checking?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11787480
Open the word document and goto file..properties, you can find variety of information that you can set for a document.

File..Versions, will give you control on versioning a document file. Is this what you are looking for ?

When you have these information, you can find Custom and Summary tabs which will show the above properties that are set.

BTW, I use Win Word 2k2
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 11790986
I think this is a fine case of the Definition of Communication: talk at cross-purposes as close as you can. If I'm not mistaken, Cyle wants to read the Version in Notes and store it in a document. Otherwise this wouldn't be a question in this TA, would it?

I state that it is NOT a property of the FILE and can NOT be found using the O/S calls about files. Instead, it is a proprietary property of the object INSIDE the file. You would therefore need additional software to get that property out. Assuming it is a Word document, you'll need either Word or a piece of software that knows about Word-documents and is able to retrieve portions from it (DLL, application, anything).

I hope I'm not terribly mistaken about the purpose of this question :|
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11792573
nobody either understand this question .. purpose is not clearly defined !!!
0
 

Author Comment

by:cyle
ID: 11795567
Sjef_bosman, understood it perfectly well. This dll, exe... are first not word documents and may vary depending on what product is being tested and I do want to extract that value using notes. Thank you, SIR!
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11797045
well... you should have mentioned that clearly. Cannot work on assumptions though !!!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Saving email w/ attachments using lotus notes 7 321
DAOS - Backup / Restore 2 208
Switching from Lotus Notes to Outlook 4 71
Lotus Notes transfer mail box problem 6 112
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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