Environment variables: Difference between revisions

Content deleted Content added
Wodan58 (talk | contribs)
Environment variables in Powershell
Line 136: Line 136:
The <tt>$_ENV</tt> associative array maps environmental variable names to their values:
The <tt>$_ENV</tt> associative array maps environmental variable names to their values:
<lang php>$_ENV['HOME']</lang>
<lang php>$_ENV['HOME']</lang>

=={{header|PowerShell}}==
Environment variables can be found in the Env: drive and are accessed using a special variable syntax:
<lang powershell>$Env:Path</lang>
To get a complete listing of all environment variables one can simply query the appropriate drive for its contents:
<lang powershell>Get-ChildItem Env:</lang>


=={{header|Python}}==
=={{header|Python}}==