I wanted a quick, down-and-dirty, reference to only those variables used by the Delphi IDE. Inside the IDE you can navigate to Tools > Options > IDE > Environment Variables. This will list all the Environment Variables currently in use. Those belonging to Delph and those outside of Delphi. However, that is not what I was looking for. I just wanted the Environment Variables specific to the Delphi IDE.
Generating this list was a three step process which involved some code I found here.
http://delphiexamples.com/systeminfo/envtrings.html
Step 1. I entered and ran the code from the above link. I then copied and pasted the contents of the memo to a separate text file called EnVars-Delphi-IDE.txt.
Step 2. I closed Delphi and ran the program again from the saved location. I then copied and pasted the contents of the memo to a file called EnVars-Without-Delphi-IDE.txt.
Step 3. I then navigated to the Delphi BDSBIN location and ran the Beyond Compare utility BCompareLite.exe. I did a text compare of EnVars-Delphi-IDE.txt and EnVars-Without-Delphi-IDE.txt looking only for the differences.
I simply copied all the text from the left-had side and saved it as EnVars-Delphi-IDE-Only.txt. And now I have my quick down and dirty list of Delphi IDE Environment Variables.
Here the list generated from my computer. YMMV
BDS=C:\program files (x86)\embarcadero\studio\22.0 BDSAppDataBaseDir=BDS BDSBIN=C:\program files (x86)\embarcadero\studio\22.0\bin BDSCatalogRepository=C:\Users\Mike\Documents\Embarcadero\Studio\22.0\CatalogRepository BDSCatalogRepositoryAllUsers=C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository BDSCOMMONDIR=C:\Users\Public\Documents\Embarcadero\Studio\22.0 BDSINCLUDE=C:\program files (x86)\embarcadero\studio\22.0\include BDSLIB=C:\program files (x86)\embarcadero\studio\22.0\lib BDSPLATFORMSDKSDIR=C:\Users\Mike\Documents\Embarcadero\Studio\SDKs BDSPROFILESDIR=C:\Users\Mike\Documents\Embarcadero\Studio\Profiles BDSPROJECTSDIR=C:\Users\Mike\Documents\Embarcadero\Studio\Projects BDSUSERDIR=C:\Users\Mike\Documents\Embarcadero\Studio\22.0 DELPHI=C:\program files (x86)\embarcadero\studio\22.0 DEMOSDIR=C:\Users\Public\Documents\Embarcadero\Studio\22.0\Samples FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default IBREDISTDIR=C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBase2020 IB_PROTOCOL=developer_ib2020 InterBase=C:\program files (x86)\embarcadero\studio\22.0\InterBase2020 Path=C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBase2020\IDE_spoof ProductVersion=22.0 SESSIONNAME=Console
Beyond Compare is a fantastic tool written with Delphi. The lite version is included with your purchase of Delphi. For more information about Beyond Compare visit their website:
https://www.scootersoftware.com/
Enjoy,
Gunny Mike
https://zilchworks.com