User Tools

Site Tools


reading_20environment_20variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reading_20environment_20variables [2018/03/31 13:19] – external edit 127.0.0.1reading_20environment_20variables [2024/01/05 00:21] (current) – external edit 127.0.0.1
Line 1: Line 1:
 =====Reading Environment Variables===== =====Reading Environment Variables=====
  
-//by Richard Russell, May 2011//\\ \\  You can read the **environment variables** associated with the current process using code similar to this:\\ +//by Richard Russell, May 2011//\\ \\  You can read the **environment variables** associated with the current process using code similar to this: 
 + 
 +<code bb4w>
         PRINT FNenvironment("PATH")         PRINT FNenvironment("PATH")
         PRINT FNenvironment("USERNAME")         PRINT FNenvironment("USERNAME")
Line 12: Line 14:
         SYS "GetEnvironmentVariable", envar$, buffer%, size%+1         SYS "GetEnvironmentVariable", envar$, buffer%, size%+1
         = $$buffer%         = $$buffer%
 +</code>
reading_20environment_20variables.1522502376.txt.gz · Last modified: 2024/01/05 00:16 (external edit)