Object: AutoRemove
- Updated2024-09-12
- 1 minute(s) read
(General | Objects) > DataPlugin > Object: AutoRemove
Object: AutoRemove
The AutoRemove object offers support when working with ZIP archives. The methods allow you to unzip ZIP archives to a temporary folder and automatically delete the files in this folder.
Note that a ZIP archive contains exactly one measurement data file. The DataFinder indexes a ZIP file only once, like any other measurement data file. Addressing within the ZIP archive is not possible.
The following example creates a temporary folder and unzips the ZIP archive FileName in this folder. Then the example imports the data of the first file with the load method described in the ATFX DataPlugin:
Sub ReadStore(FileName) Dim TempFolder TempFolder = AutoRemove.CreateFolder() Dim FileList FileList = Unzip(FileName, TempFolder) Call Root.ImportStore(TempFolder & FileList(0), "ATFX") End Sub