Create pack and unpack batch files

<< Click to Display Table of Contents >>

Navigation:  White Papers > Workflow with Vault and PlantTools >

Create pack and unpack batch files

Previous pageReturn to chapter overviewNext page

Next we need two batch files to pack and unpack the PlantTools configuration files.

Let's call the packing batch file "PT_Pack.bat". You can use a different file name.

With the following lines every file in the PT_Files.txt file will be added to the "ACPlantTools.zip" file. In this example we used WINRAR for compressing. You can of course use other compression tools.

WorkFlow with Vault and PlantTools 015

If you run the PT_Pack.bat from the "Related Files" folder you get a command prompt dialog and the compression tool will probably pop up for every file.

When all files are compressed into the ACPLantTools.zip file the command prompt closes.

WorkFlow with Vault and PlantTools 016

We then see the zip file in the "Related Files" folder.

WorkFlow with Vault and PlantTools 017

If we open the zip file we see the ACPlantTools folder.

WorkFlow with Vault and PlantTools 018

In there we see the sub folders for the various PlantTools.

WorkFlow with Vault and PlantTools 020

Last we need an unpack batch file to unpack the zip file to get the PlantTools configuration files.

The first part deletes any existing configuration files and folders and the last line decompresses the files from the ACPlantTools.zip file again.

This typically runs pretty fast.

WorkFlow with Vault and PlantTools 019

Next Chapter: Copy and Link files to project and check in (Admin)