question

davidchann avatar image
0 Likes"
davidchann asked davidchann commented

How to check the quantity of excel file in a directory

I just want to use code to check the quantity of excel files in the same directory, and it's better to get the file name

FlexSim 24.2.0
codeexcelfile
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered davidchann commented
getfilesindirectory(modeldir(), "xlsx", model().subnodes.assert("test"));

https://docs.flexsim.com/en/24.2/Reference/CodingInFlexSim/CommandReference/Commands.html#getfilesindirectory

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

davidchann avatar image davidchann commented ·
It works! thank you very much ~
0 Likes 0 ·