Ajuda sobre "Script"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ccmancio
    Old Hand
    • May 2005
    • 235

    Ajuda sobre "Script"

    Necessito fazer um script para comparar duas pastas.
    criei um script "Temp.bcs".

    O problema é que no relatório vem todos os arquivos, e não tem como diferenciar os que são "iguais com diferença insignificantes" dos que são "Exatamente iguais". Como fazer o relatório somente com os arquivos que são "iguais com diferenças insignificantes" .

    Seque anexo,o script, a tela com a comparação no BC e o relatório gerado.

    O relatório final foi gerado em um arquivo "MyReport.txt"
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    You will need to load your vbsep session in the graphical interface and disable the Ignore Unimportant Differences toggle in the toolbar. Then re-save the session and re-run your script.

    I also notice you have the compare and criteria command in the same script. You do not need the "compare rules-based" line.

    Also, if you want you can set up your vbsep session to be:
    - your pair of folders.
    - filter set to *.*
    - set the criteria in the session settings.
    Then you can save the session and load it in the script, without needing to perform those steps manually in script.

    translate.google.com
    Olá,

    Você vai precisar carregar a sua sessão vbsep na interface gráfica e desativar as diferenças sem importância Ignore alternar na barra de ferramentas. Em seguida, salve novamente a sessão e re-executar o script.

    Eu também noto que você tem o comando comparar e critérios no mesmo script. Você não precisa do "comparar baseado em regras" linha.

    Além disso, se você quiser, pode configurar sua sessão vbsep ser:
    - O seu par de pastas.
    - O filtro de *.*
    - Definir os critérios nas configurações de sessão.
    Então você pode salvar a sessão e carregá-lo no roteiro, sem a necessidade de executar os passos manualmente no script.
    Aaron P Scooter Software

    Comment

    • ccmancio
      Old Hand
      • May 2005
      • 235

      #3
      Não funcionou.
      Se eu retiro o "Ignore Unimportant" a comparação do arquivo "NomeDaAplicacao.vbsep" fica diferente, caso contrario fica igual.
      Eu preciso que fique "diferenças insignificantes, que é o ~(til) duplo na coluna grafica, para identificar o que é "exatamente igual", e "com diferenças insignificantes", pois só quero deletar a primeira.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16002

        #4
        Hello,

        Our plain text report does not return the content comparison results as the center column. The center column is used to show the difference status since coloring is not available. The center column is instead used for the difference status: newer, different, older, equal.

        To get the ~ content comparison, you'll need to generate an HTML report or Printer (to a file).
        Aaron P Scooter Software

        Comment

        • ccmancio
          Old Hand
          • May 2005
          • 235

          #5
          E como é que se faz isto.
          Alterei "report-to-folder layout" para "xml", mas continuou monstrando apenas que são diferentes, onde diz que "diferenças são insignificantes (~) ?

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16002

            #6
            Hello,

            The XML Status only differentiates between "different" or "same". This depends on if Ignore Unimportant Differences is enable or not. You'll want an HTML or Printer report. I can add your request to our Customer Wishlist.
            Aaron P Scooter Software

            Comment

            • ccmancio
              Old Hand
              • May 2005
              • 235

              #7
              ok, Então vou fazer em duas vezes, a primeira excluindo os "Exatamente iguais" sem "Diferenças insignificantes" e depois gero o relatório com "Diferenças insignificantes".
              Vou aguardar esta opção("~") no relatório na próxima versão.

              Comment

              • Aaron
                Team Scooter
                • Oct 2007
                • 16002

                #8
                Hello,

                It is unlikely we'll be changing our reports in the next minor version of BC3, but it is something we'll look into for a potential future version.
                Aaron P Scooter Software

                Comment

                Working...