Jump to content

Recommended Posts

Posted

While trying to get a solution for scanning threw folders and subfolders, retrieving several properties of MSoffice files, I noticed that dsofile was many time described on this forum, but with wrong syntax:

http://www.autoitscript.com/forum/index.php?showtopic=40684

http://www.autoitscript.com/forum/index.php?showtopic=41609

http://www.autoitscript.com/forum/index.php?showtopic=53007

here is the solution :

; so this will NOT run:
;;$DSO = ObjCreate("DSOlefile.PropertyReader")
;here is the good syntax
$DSO=ObjCreate("DSOFile.OleDocumentProperties")
......

$DSO.open(.... "your file path"....)

            $TITLE=$DSO.SummaryProperties.Title
            $SUBJECT=$DSO.SummaryProperties.subject
            $AUTHOR=$DSO.SummaryProperties.author
            $KEYWORDS=$DSO.SummaryProperties.keywords

.....

getting right syntax from here : http://www.developpez.net/forums/archive/i...p/t-171265.html

I first started using #include <Word.au3> and something like

WordDocPropertyGet($oDoc,"Title")

but it needs more than 2 hours, and only 1mn with DSO for scanning 300 directories, 1438 files, 680 word files ( my need)

enjoy it :)

keywords : dso dsofile dsofiles PropertyReader scan files word msword excel office msoffice query querying metadata file files get getting properties

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...