Solution
Unzip for DataPlugin method is specific for DataPlugin object interface, which can be called in a DataPlugin script and not in a .vbs DIAdem script.
To be able to programmatically unzip a .zip file, you could use standard VBScript functionality (not DIAdem-specific commands). One possible example implementation is as follows:
Dim ZipFile, ExtractTo, fso, objShell, FilesInZip
'Set ZipFile variable to the location of the zip file.
ZipFile="C:\Test.Zip"
'Set ExtractTo variable to the folder the contents should be extracted to.
ExtractTo="C:\Test\"
'If the extraction location does not exist create it.
Set fso = CreateObject("Scripting.FileSystemObject")
If NOT fso.FolderExists(ExtractTo) Then
fso.CreateFolder(ExtractTo)
End If
'Extract the contents of the zip file.
set objShell = CreateObject("Shell.Application")
set FilesInZip = objShell.NameSpace(ZipFile).items
objShell.NameSpace(ExtractTo).CopyHere(FilesInZip)
Set fso = Nothing
Set objShell = NothingThis example uses:
- FileSystemObject methods to check if the destination directory exists and, if not, programmatically create it
- Shell object methods to execute commands within the Shell, in particular to get the Items in the .zip file and copy them in the destination folder