Forum Discussion

Vec84's avatar
Vec84
Contributor
8 years ago

Word compare issue

I have recently installed the word compare extension on TC11 and i copied the example function from the website and input my paths so i could compare two of my letters. I've played about a lot with t...
  • tristaanogre's avatar
    8 years ago

    Yup... that's fairly simple to solve.

    You're using the JScript/JavaScript function format.  In that format, when doing file paths, the backslash character (\) in a string is used for other functionality.  In order for it to resolve as an actual backslash, you need to double it up.  Change your code to the following:

    function Main ()
    {
      WordDocs.Compare("Y:\\Compare\\GGE002-1.docx", "Y:\\Compare\\GGE002-2.docx",2);
    }