diff --git a/PowerShell/Powershell.odt b/PowerShell/Powershell.odt index 4174fd3..c9421e6 100644 Binary files a/PowerShell/Powershell.odt and b/PowerShell/Powershell.odt differ diff --git a/PowerShell/Schleifen.ps1 b/PowerShell/Schleifen.ps1 index 7ea1b1e..bc2244c 100644 --- a/PowerShell/Schleifen.ps1 +++ b/PowerShell/Schleifen.ps1 @@ -24,4 +24,12 @@ for($i=10; $i -lt 20; $i++) { if($i -eq 15) { continue } $i } -Write-Host $i \ No newline at end of file +Write-Host $i + +$elemente = Get-ChildItem +forEach($elemente in $elemente) { + $elemente.Name } + +$elemente = Get-ChildItem +Get-ChildItem | ForEach-Object { + $_.Name } \ No newline at end of file