Mit Powershell den ‚dir‘ Befehl emulieren

Aus einem Posting in microsoft.public.windows.powershell:

dir /a
 
Get-ChildItem | Where-Object {$_.PSIsContainer
 
dir /a-
 
Get-ChildItem | Where-Object {!$_.PSIsContainer}
 
dir /o
 
Get-ChildItem | Sort-Object Date
 
dir /od /a-
 
Get-ChildItem | Where-Object {!$_.PSIsContainer} | Sort-Object Dat
 
dir /a
 
Get-ChildItem -force -path C:\ | Where-Object {$_.Mode -match "h"
 
dir /a-
 
Get-ChildItem -force -path C:\ | Where-Object {!$_.Mode -match "h"
 
dir /
 
Get-ChildItem | Select-Object Name

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website