os:windows:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
os:windows:powershell [2011-02-09 17:22] – root | os:windows:powershell [2016-11-19 16:14] – root | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell ====== | ====== PowerShell ====== | ||
+ | == Temporary add a directory to the PATH variable == | ||
- | $env:path += ";\\iit-wf02\Archive\Data\Engineering\Private\Software\Windows\Install\Net4\Admin\Tools" | + | < |
+ | $ENV:PATH += ";C:\Users\Admin\bin" | ||
+ | </ | ||
+ | == Parse integer == | ||
- | ===== Links ===== | + | < |
- | + | PS H:\> $x = Read-Host | |
- | | + | a |
+ | PS H: | ||
+ | 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