DIAdem Help

Method: CreateFolder for AutoRemove

  • Updated2024-09-12
  • 1 minute(s) read

Method: CreateFolder for AutoRemove

Creates a new, unique folder reserved for the automatic deletion process. The automatic deletion of the folder and its files occurs as soon as the DataPlugin no longer requires these files.

sCreateFolder = Object.CreateFolder([sBaseFolder])
ObjectAutoRemove
Object with this method
[sBaseFolder]String
Specifies the base folder in which the new folder is generated. Per default the base folder is %TEMP%.
sCreateFolderString
Receives the absolute path of the newly created folder. The path name always ends with a backslash.

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