I have a directory structure like this:
- Root
- Versioned deployment folder
- config file
The "Versioned deployment folder" name varies with each version of the application. The config file name stays the same.
I'd like to write a batch file that opens a program on the config file. The batch file should stay the same regardless of the name of the intermediate folder. The config file will be the only file with its name under the Root.
How do I get the path to the config file consistently from within the batch file?