Environment variables: Difference between revisions
Content deleted Content added
m added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace and highlighting to the task's preamble. |
new: AutoIt |
||
Line 66: | Line 66: | ||
<lang autohotkey>EnvGet, OutputVar, Path |
<lang autohotkey>EnvGet, OutputVar, Path |
||
MsgBox, %OutputVar%</lang> |
MsgBox, %OutputVar%</lang> |
||
== {{header|AutoIt}} == |
|||
<lang AutoIt>ConsoleWrite("# Environment:" & @CRLF) |
|||
Local $sEnvVar = EnvGet("LANG") |
|||
ConsoleWrite("LANG : " & $sEnvVar & @CRLF) |
|||
ShowEnv("SystemDrive") |
|||
ShowEnv("USERNAME") |
|||
Func ShowEnv($N) |
|||
ConsoleWrite( StringFormat("%-12s : %s\n", $N, EnvGet($N)) ) |
|||
EndFunc ;==>ShowEnv</lang> |
|||
{{Out}} |
|||
<pre># Environment: |
|||
LANG : DE |
|||
SystemDrive : C: |
|||
USERNAME : HaJo</pre> |
|||
=={{header|AWK}}== |
=={{header|AWK}}== |