myFunction.gms
Code: Select all
display "%1";
Code: Select all
$batinclude myFunction.gms abc
$batinclude myFunction.gms 123
RootFolder
│ myFunction.gms
│ testFunction.gms
├───SubFolder1
├───SubFolder2
└───SubFolderA
This is the expected effects, but how to write a gams codes to do it by giving only the "RootFolder", so that it finds all the sub-folders, and call myFunction.gms one by one? Thank you!
Code: Select all
$batinclude myFunction.gms SubFolder1
$batinclude myFunction.gms SubFolder2
$batinclude myFunction.gms SubFolderA