This is a very simple script that sets some environment variables (prefixed names prop_) based on the name / value pairs in the specified file, i.e. name = value in the file becomes prop_name = value in the environment
setlocal disabledelayedexpansion
FOR /F "tokens=1* delims==" %%i IN (regfort.properties) DO set "prop_%%i=%%j"
The launch set prop_will display the names and values of all variables with a name prefix prop_.
source
share