also getting a parameter is incorrect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fpdave
    Journeyman
    • Apr 2008
    • 17

    also getting a parameter is incorrect

    when doing a multi-file file report using the following script:
    log verbose c:\DIFFLOG_%date%.log
    load "C:\Program Files\Microsoft Visual Studio\VB98\PROJECTS (v11Rel)" "\\r5bldvpc-curv11\Projects"
    filter "-*.ocx;-*.dll;-*.exe;-*.pdb;-*.log;-*.err;-*.lib;-*.exp;-*.scc;-*.done;-*.bak;-*.chm;-*.doc;-*.vsd;-*.mpp;-*.srt;-BCcsOperatives1.niboxpart;-*.niboxpart;-*.rptpart;-*.vbw;-*.PROC_R5S2;-*.SingleCharBoxPart;-*.PROCESSED_R5S2;-*.SCIR5S;-*.mdf;-*.ldf;-xmldoc.xml;-*.out;-*.OBJ;-*.zip;-*.oca;-*.vbg;-*.ctx;-BoxProperties (orig).csv;-*.vbp;-sgCcsrf.~lmt;-sgCcsrf.lmt;-Thumbs.db;-.\_filesfile;-.\diff.txt;-.\filever_Tue;-.\nodiffs.txt;-.\NULL;-.\processbox.awk;-.\ProcessBoxSingleCharInput.awk;-.\processproj.awk;-.\processscreen.awk;-.\Sage Report Designer User Guide.pdf;-.\vssstatus.bat;-.\writeable.txt;-.\Retrieve\Construct\Construct_Basic.chm;-.\Retrieve\Construct\R5ScreenControlsFromAccessDb. txt;-R5LicenseKeysVSS.lic;-.\SCRIPTS\backup\;-.\CcsStatLayouts\Scripts\archive\;-.\MMS Interface\;-.\Documents\"
    expand all
    select rt.diff.files
    criteria rules-based
    file-report layout:composite &
    options:display-context,ignore-unimportant &
    title:"v11 vs patch Comparison" &
    output-to:C:\DIFF_v11_to_Patch_test.html &
    output-options:html-color

    error is:
    05/09/2006 14:17:23 Beyond Compare Version 2.4.3 (build 243)
    Exception occurred at: 000119EE
    System Error. Code: 87.
    The parameter is incorrect

    If I use select all.files then it works OK. I'm sure that some files should be being selected as a folder report with the same select works OK and shows fiels on the RHS that are different.
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: also getting a parameter is incorrect

    Try using this modified version of the script:
    Code:
    log verbose c:\DIFFLOG_%date%.log
    criteria rules-based
    load "C:\Program Files\Microsoft Visual Studio\VB98\PROJECTS (v11Rel)" "\\r5bldvpc-curv11\Projects"
    filter "-*.ocx;-*.dll;-*.exe;-*.pdb;-*.log;-*.err;-*.lib;-*.exp;-*.scc;-*.done;-*.bak;-*.chm;-*.doc;-*.vsd;-*.mpp;-*.srt;-BCcsOperatives1.niboxpart;-*.niboxpart;-*.rptpart;-*.vbw;-*.PROC_R5S2;-*.SingleCharBoxPart;-*.PROCESSED_R5S2;-*.SCIR5S;-*.mdf;-*.ldf;-xmldoc.xml;-*.out;-*.OBJ;-*.zip;-*.oca;-*.vbg;-*.ctx;-BoxProperties (orig).csv;-*.vbp;-sgCcsrf.~lmt;-sgCcsrf.lmt;-Thumbs.db;-.\_filesfile;-.\diff.txt;-.\filever_Tue;-.\nodiffs.txt;-.\NULL;-.\processbox.awk;-.\ProcessBoxSingleCharInput.awk;-.\processproj.awk;-.\processscreen.awk;-.\Sage Report Designer User Guide.pdf;-.\vssstatus.bat;-.\writeable.txt;-.\Retrieve\Construct\Construct_Basic.chm;-.\Retrieve\Construct\R5ScreenControlsFromAccessDb.txt;-R5LicenseKeysVSS.lic;-.\SCRIPTS\backup\;-.\CcsStatLayouts\Scripts\archive\;-.\MMS Interface\;-.\Documents\"
    expand all
    select rt.diff.files
    file-report layout:composite &
    options:display-context,ignore-unimportant &
    title:"v11 vs patch Comparison" &
    output-to:C:\DIFF_v11_to_Patch_test.html &
    output-options:html-color
    Placing criteria before the load command might help.

    In your original script, the select command was before the criteria command. This meant select rt.diff was referring to differences according to default criteria. This is usually timestamp and size. With selection, .diff refers to differences other than timestamp. So in the previous script, it was selecting right side files with size differences, but not timestamp differences.

    With the order changed, it should select files with rules-based differences on the right side.

    Let me know if that doesn't solve the problem.

    Also, the folder-report command doesn't operate on selected files. It operates on any visible files, so all you need is an expand all command before folder-report to include files in subfolders.
    Chris K Scooter Software

    Comment

    Working...