User Tools

Site Tools


os:windows:powershell

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
windows:powershell [2008-09-21 17:53] – created rootos:windows:powershell [2016-11-19 16:14] root
Line 1: Line 1:
 ====== PowerShell ====== ====== PowerShell ======
-===== Links ===== 
  
-  * [[http://www.magnus.de/tabelle/formatierungsoption-fuer-f.html]]+== Temporary add a directory to the PATH variable ==
  
 +<code>
 +$ENV:PATH += ";C:\Users\Admin\bin"
 +</code>
  
 +== Parse integer ==
 +
 +<code>
 +PS H:\> $x = Read-Host
 +a
 +PS H:\> [int32]::TryParse($x,[ref]0)
 +False
 +PS H:\> $x = Read-Host
 +5
 +PS H:\> [int32]::TryParse($x,[ref]0)
 +True
 +</code>
 +
 +== Multidimensionale Arrays ==
 +
 +<code>
 +PS C:\> $a = ( "a", "b", "c" ),( "d", "e", "f" )
 +PS C:\> $a += ,( "g", "h", "i" )
 +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:\>
 +</code>
os/windows/powershell.txt · Last modified: 2018-12-04 09:16 by root