User Tools

Site Tools


os:windows:powershell

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
os:windows:powershell [2011-02-09 17:22] rootos: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"+<code> 
 +$ENV:PATH += ";C:\Users\Admin\bin" 
 +</code>
  
 +== Parse integer ==
  
-===== Links ===== +<code> 
- +PS H:\> $x Read-Host 
-  [[http://www.magnus.de/tabelle/formatierungsoption-fuer-f.html]]+a 
 +PS H:\> [int32]::TryParse($x,[ref]0) 
 +False 
 +PS H:\> $x = Read-Host 
 +
 +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