<< Click to Display Table of Contents >> Create pack and unpack batch files |
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.
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.
We then see the zip file in the "Related Files" folder.
If we open the zip file we see the ACPlantTools folder.
In there we see the sub folders for the various PlantTools.
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.
Next Chapter: Copy and Link files to project and check in (Admin)