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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integrate Product Version

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
Is it possible to integrate a product version into a .vbs or .wsf file so that it will show up when the Product Version column is displayed in explorer?

If it is possible, how do you do it?
 
dm4ever, I thought tha DSOFile was for MS-Office files only.
 
Hi PHV,

I just tried this and it seems to have worked fine with a .vbs file too.

Code:
Dim objDoc : Set objDoc = CreateObject("DSOFile.OleDocumentProperties")
objDoc.Open("c:\temp\test.vbs")
objDoc.SummaryProperties.Comments = "test comment"
objDoc.SummaryProperties.Author = "dm_4ever"
objDoc.Save

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
You're right dm4ever.
I didn't realize that the properties window (from within explorer) has the 4th tab for the BuilinProperties...
 
Didn't work for me. I had to download DSOFile from microsoft and install it first. It is still moaning about OleDocumentProperties. It is a way forward anyway. I'll check what I can do to get DSOFIle to get picked up by the system. Might be a windows 2000 thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top