Guest learned Posted April 18, 2005 Share Posted April 18, 2005 Is there any way using AutoIt to update the windows file properties metadata? By this I mean the fields such as Title, Subject, Keywords, Comments that are normally accessed via the properties dialog. Link to comment Share on other sites More sharing options...
nexo Posted April 27, 2007 Share Posted April 27, 2007 Is there any way using AutoIt to update the windows file properties metadata? By this I mean the fields such as Title, Subject, Keywords, Comments that are normally accessed via the properties dialog.hello, i was looking for the same thing and I found the Microsoft DSOFILE.dll library (search "dsofile" at http://www.microsoft.com/downloads it's free).First register that DLL (regsvr32 path\dsofile.dll).Here is some code :CODE$path = FileOpenDialog("Choose file (to read/modif some properties)",@ScriptDir,"All (*.*)")$objPropertyReader = ObjCreate("DSOleFile.PropertyReader")$objDocument = $objPropertyReader.GetDocumentProperties ($path)MsgBox(0, "Keywords property", $objdocument.Keywords)MsgBox(0, "Title property", $objdocument.Title)$objdocument.Keywords = InputBox("input the new Keywords", "new keywordds")$objdocument.Title = InputBox("enter the new Title", "new Title :")MsgBox(0, "news Keywords of that file", $objdocument.Keywords)MsgBox(0, "new Title", $objdocument.Title)Limitation : it only works with compatible OLE file types (MSOffice...). It doesn't work with OpenOffice files. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now