DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Unzip for DataPlugin

Solved!
Go to solution

Hello,

 

I try to manage zip files with the DataFinder. I tried to use the code below, but it didn't work. I always get the message: Type mismatch: 'Unzip'

 

There is only one csv file in the zip file. I am using DIAdem 2017 SP1 and it didn't work with DIAdem 2017 neither.

 

Has someone already had an experience with that?

 

Thank you in advance

Tansu Özel

 

Code:

Sub ReadStore(FileName)
  Dim TempFolder
  TempFolder = AutoRemove.CreateFolder()

  Dim FileList
  FileList = Unzip(FileName, TempFolder)

  Call Root.ImportStore(TempFolder & FileList(0), "my_csv")
End Sub

 

0 Kudos
Message 1 of 3
(2,306 Views)
Solution
Accepted by topic author toezel

Make sure you switched your plugin to "Filename only plugin".

 

filenameOnly.PNG

else you will get an object instead of a filename.

 

Message 2 of 3
(2,284 Views)

Thank you AndreasK, it works!

0 Kudos
Message 3 of 3
(2,281 Views)