🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Can Monarch Server (Automator) unzip a file?

User: "Joe_21066"
Altair Community Member
Updated by Joe_21066

Can Monarch Server (Automator) unzip a file? We intend to receive zipped files to a monitored folder. We are wondering if Monarch has a feature to unzip the file, or if a zipped file can be read normally by the program. If the file does need to be unzipped, is there a feature that does this or would we need to implement a script? Thank you.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Mo Abdolrahim"
    Altair Employee
    Updated by Mo Abdolrahim

    Hi Joe,

    The Monarch Server Automator does not provide an object to unzip a zip file.  You can write a script using a Shell command and 7z program (or other zip program that provide command line parameters) or use the  .Net Framework system.io.compression library and unzip files.

    If you intend to use reports that are in the zip file in Monarch, then the Altair Monarch Classic can read zip files.  You can open a zip file in Monarch Classic (Open>Archive) and build a model.

    Upload the Model to the Automator server library, and create a visual process and read all files from the zip file and then export either a table or a summary.

    In the screenshots below, the zip file contains three PDF files.  A wildcard is used to read all three PDF files, and the table export extracts data from all three PDF files and generates an output file. 

    Mo

    image

    image