Another BSFN using the jdeGetEnvironmentPaths API to get the physical paths for Import, Export and system folders for a specific environment. This BSFN can be used from 8.11 onwards.
The BSFN input is only the Environment name, and outputs are Import, Export, System and Application folders.
Download the Files here.