Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Word Docs Comparison


  • Please log in to reply
No replies to this topic

#1 zfisherdrums

zfisherdrums

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 391 posts

Posted 14 June 2007 - 06:01 AM

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.

Attached File  Word_Doc_Comparison.zip   70.93KB   223 downloads

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 by zfisherdrums, 14 June 2007 - 08:13 PM.











0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users