User Tools

Site Tools


reading_20environment_20variables

Differences

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

Link to this comparison view

reading_20environment_20variables [2018/03/31 13:19]
127.0.0.1 external edit
reading_20environment_20variables [2018/04/15 11:05]
richardrussell Added syntax highlighting
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.txt · Last modified: 2018/04/15 11:05 by richardrussell