ICreateArchive OpenCreateZAR

Create a ZOS Archive of the currently open Lens Data System.

 
ICreateArchive cZAR = Tools.OpenCreateZAR();
if (cZAR != null)
{
    cZAR.UseDataCompression = true;
    //
    //  if the Optical System has an archive associated with it, this is it.
    //  if not, then a default name is constructed.
    //
    string zarFilename = cZAR.GetArchiveFileName();
    if (cZAR.SetArchiveFileName(fullFileName: "C:\\Temp\\testZARCreation"))
    {
        //
        //  the Archive File Name was successfully set.
        //
    }
    if (!cZAR.Run())
    {
        //
        //  we were unable to Run the tool.
        //
    }
    cZAR.Close();
}

Next: