os:windows:powershell
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
windows:powershell [2008-09-21 17:53] – created root | os:windows:powershell [2016-11-19 16:14] – root | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell ====== | ====== PowerShell ====== | ||
- | ===== Links ===== | ||
- | * [[http:// | + | == Temporary add a directory to the PATH variable == |
+ | < | ||
+ | $ENV:PATH += "; | ||
+ | </ | ||
+ | == Parse integer == | ||
+ | |||
+ | < | ||
+ | PS H:\> $x = Read-Host | ||
+ | a | ||
+ | PS H:\> [int32]:: | ||
+ | False | ||
+ | PS H:\> $x = Read-Host | ||
+ | 5 | ||
+ | PS H:\> [int32]:: | ||
+ | True | ||
+ | </ | ||
+ | |||
+ | == Multidimensionale Arrays == | ||
+ | |||
+ | < | ||
+ | PS C:\> $a = ( " | ||
+ | PS C:\> $a += ,( " | ||
+ | PS C:\> | ||
+ | PS C:\> $a[0] | ||
+ | a | ||
+ | b | ||
+ | c | ||
+ | PS C:\> $a[2] | ||
+ | g | ||
+ | h | ||
+ | i | ||
+ | PS C:\> $a[0][0] | ||
+ | a | ||
+ | PS C:\> $a[2][0] | ||
+ | g | ||
+ | PS C:\> | ||
+ | </ |
os/windows/powershell.txt · Last modified: 2018-12-04 09:16 by root