Can Monarch Server (Automator) unzip a file?
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.
Answers
-
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
0