Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 2504

Loading environment variables from RAD Studio when using command line builds

$
0
0

I'm working with RAD Studio on the Tokyo version. I would like to build my projects from the command line (for build automation). I've found out that I could use msbuild and it seems to work. However I am facing a problem regarding the 'User overridden environment variables' that I've configured in RAD Studio. They are not loaded in either the special 'Rad studio command prompt' nor after running Embarcadero/Studio/19.0/bin/rsvars.bat.

Is there a standard way to initialize/load/set the user overridden enrvironment variables used in RAD Studio from outside RAD Studio (especially from within the command prompt)?

I've been busy loading the variables from the registry with the following batch command, but it also doesn't work perfectly (while extending the standard path variables failes):

for /F "tokens=1,3" %%x in ('REG QUERY "HKCU\Software\Embarcadero\BDS\19.0\ENVIRONMENT Variables"') do set %%x=%%y

Thanks in advance.

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>