Cancel
Showing results for 
Search instead for 
Did you mean: 

import file based on partial name

Experimenter
Experimenter

Hi,

 

I'm trying to import the latest version of a file from a folder (outside PlantSim). For instance, the folder contains:

- File_20171017_v1

- File_20171017_v2

- File_20171016_v1

 

I use a variable where I enter the date in which I'm interested, e.g, 20171017. Now I require a way to get the file names which match File_<date>_...

 

If I have this list of potential latest versions, I then would need to look at the last value (the version number) and select the highest.

 

Anyone thoughts on how to do this in PlantSim?

 

Regards,

Paul 

 

2 REPLIES

Re: import file based on partial name

Phenom
Phenom

Unbenannt.png

have a look

 

 

 

Re: import file based on partial name

Experimenter
Experimenter

Hi simulator, I had to make some minor adjustments for PlantSim 10, but your solution works perfectly. Thanks a lot!

 

Regards,

Paul