System Error Code 87

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MizuRyuu
    Visitor
    • Mar 2008
    • 5

    System Error Code 87

    I am trying to write a script that will compare two folders and then output a report on the differences inside based on a rules I imported.


    #compare the text contents of the files
    criteria rules-based
    load "%1" "%2"
    expand all
    select diff.files
    file-report layout:side-by-side &
    output-to:C:\log\Regression Logs\report.txt


    It gives the following error

    Beyond Compare Version 2.5 (build 250)
    Exception occurred at 00011BB6
    System Error. Code 87.
    The parameter is incorrect
    Script completed in 0.0.3


    I tried this with some simple files and it doesn't work either.
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: System Error Code 87

    Hello MizuRyuu,

    The output path for the report has a space in it, but you don't have quotes around the path. If you quote the path it should solve the problem.

    Also, remote the quotes around %1 and %2. If you pass arguments with spaces in them on the command line, they'll already have quotes around them on the command line. If you also include quotes in the script, it will result in double quoting.

    Code:
    #compare the text contents of the files
    criteria rules-based
    load %1 %2
    expand all
    select diff.files
    file-report layout:side-by-side &
    output-to:"C:\log\Regression Logs\report.txt"
    Chris K Scooter Software

    Comment

    • MizuRyuu
      Visitor
      • Mar 2008
      • 5

      #3
      Re: System Error Code 87

      thank you for the help.

      I was able to fix the problem now..

      Comment

      Working...