sksbir Posted March 4, 2008 Posted March 4, 2008 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=40684http://www.autoitscript.com/forum/index.php?showtopic=41609http://www.autoitscript.com/forum/index.php?showtopic=53007here 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.htmlI first started using #include <Word.au3> and something likeWordDocPropertyGet($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
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