Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing the Summary Tab of a File's properties 1

Status
Not open for further replies.

dseaver

IS-IT--Management
Jul 13, 2006
467
I am trying to use the Revision Number field from the Summary tab of a .vbs or .js file's properties. Is there a class that already handles this (like System.Diagnostics.FileVersionInfo)? This needs to be done in VS .Net 2003. Thanks!
 
I have found it with the help of jmeckley and some digging, using the DSOFile source code from the MS KB above ( ) I recompiled the code in VS2003 and used the following 3 lines to access the Revision field and put it in a text field

Code:
OleDocumentPropertiesClass test =  new OleDocumentPropertiesClass();
test.Open(@"C:\test.vbs", true, DSOFile.dsoFileOpenOptions.dsoOptionDefault);
this.textBox1.Text = test.SummaryProperties.RevisionNumber;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top