How do I archive WB project without results using scripting?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 472
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

I want to archive my WB project using scripting but using the Archive() method archives the project with result files. How can I archive it without results (.rst file etc.)?

Tagged:

Best Answer

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 472
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

    The boolean argument IncludeSkippedFiles does the trick. If set to False the archived project doesn't include the result files (.rst etc.). Example usage:

    Archive(FilePath="\Path\to\my\test.wbpz", IncludeSkippedFiles=False)
    

Answers

  • Matthias
    Matthias Member Posts: 25
    10 Comments Name Dropper First Anniversary
    **

    Dear @Ayush Kumar

    I have two questions regarding the archive function.

    1. How can I inspect the function to see all available arguments? See below for my attempt using 'inspect' module that did not work.

    2. Is it possible to run the archiving script from command line in batch mode, so without displaying the project by GUI?

    Ref. 1:

    import inspect
    inspect.getfullargspec(Archive)

    MissingMemberException: 'module' object has no attribute 'getfullargspec'