DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read all files from a folder Diadem

Solved!
Go to solution

Hello,

 

Can somebody tell me how to load automatic some .csv file form a folder to Data Portal in Diadem.

I do some tests and during this tests I record  data ( .csv files), files that I load manual now (*FileNameGet  command), but I want when the tests are done and I load the script, atomatic to load the csv files, analyze and build the report.

 

Please advice me how can I do that.

 

Thank you

 

0 Kudos
Message 1 of 2
(4,539 Views)
Solution
Accepted by topic author Marse

Something like the following should work.

 

dim dirToLookIn : dirToLookIn="D:\temp"

dim fs : Set fs = CreateObject("Scripting.FileSystemObject")

dim folder : Set folder = fs.GetFolder(dirToLookIn)

dim file : For Each file In folder.Files

 

  dim fileName : fileName = file.name

 

Next

Message 2 of 2
(4,524 Views)