Solved

File Property -- Version.

Posted on 2004-08-11
15
195 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
  • 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 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

20 Experts available now in Live!

Get 1:1 Help Now