zfisherdrums Posted June 14, 2007 Share Posted June 14, 2007 (edited) Sorry, LazyReader© fans. This is a serious post. I needed a utility that would allow me to compare the contents of 2 folders containing text/Word documents then produce an analysis report. Fortunately, Word contains some native functionality to Compare and Merge documents. Using the Word Object Model, I created a GUI utility to do just that. Word_Doc_Comparison.zip Unzip the attached ZIP file to your syste, Verify that you have a folder the au3 file and 3 sub-folders - Original (contains 3 files) - Comparison (contains 3 files) - Results Run the au3 script When the GUI appears, either type in the path to "Original" or drag the Original Folder into the "Baseline Folder" text box. Now, either type in the path to "Comparions" or drag the Comparison Folder into the "Regression Folder" text box. Now, either type in the path to "Results" or drag the Results Folder into the "Results Folder" text box. Finally, Click Test->Run Comparisons You should see a series of dialog boxes. When the comparisons are completed, the results folder should open containing 3 compared documents and a log file (shown below ). 2007-06-14 01:01:22 : <SESSION START> 2007-06-14 01:01:22 : BASELINE = C:\Documents and Settings\fisherz\Desktop\Word Doc Comparison\Original 2007-06-14 01:01:22 : REGRESSION = C:\Documents and Settings\fisherz\Desktop\Word Doc Comparison\Comparison 2007-06-14 01:01:22 : ------------------------------------------------------------------ 2007-06-14 01:01:22 : Comparing BASELINE-A.doc to REGRESSION-A.doc 2007-06-14 01:01:22 : SECT %CHNG INS DEL 2007-06-14 01:01:22 : ---- ----- --- --- 2007-06-14 01:01:22 : Header 0 0 0 2007-06-14 01:01:23 : Body 3.76 7 7 2007-06-14 01:01:23 : Footer 0 0 0 2007-06-14 01:01:23 : ------------------------------------------------------------------ 2007-06-14 01:01:23 : Comparing BASELINE-B.doc to REGRESSION-B.doc 2007-06-14 01:01:23 : SECT %CHNG INS DEL 2007-06-14 01:01:23 : ---- ----- --- --- 2007-06-14 01:01:23 : Header 0 0 0 2007-06-14 01:01:23 : Body 0.52 3 3 2007-06-14 01:01:23 : Footer 0 0 0 2007-06-14 01:01:23 : ------------------------------------------------------------------ 2007-06-14 01:01:23 : Comparing BASELINE-C.doc to REGRESSION-C.doc 2007-06-14 01:01:23 : SECT %CHNG INS DEL 2007-06-14 01:01:23 : ---- ----- --- --- 2007-06-14 01:01:24 : Header 0 0 0 2007-06-14 01:01:24 : Body 1.48 4 4 2007-06-14 01:01:24 : Footer 0 0 0 2007-06-14 01:01:24 : ------------------------------------------------------------------ 2007-06-14 01:01:24 : <SESSION END> Edited June 14, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... 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