Jump to content
Sign in to follow this  
sksbir

Correct usage of DSOFILE.dll

Recommended Posts

sksbir

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.