Files
tldr/pages/windows/get-childitem.md
Emily Grace Seville c52cc074d9 windows/*.md: make placeholders more compatible with CLIP ones (#9872)
* Make placeholders more compatible with CLIP ones

* Update pages/windows/doskey.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

* Update pages/windows/doskey.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
2023-02-20 15:23:49 +08:00

623 B

Get-ChildItem

List items in a directory. This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-childitem.

  • List all non-hidden items in the current directory:

Get-ChildItem

  • List only directories in the current directory:

Get-ChildItem -Directory

  • List only files in the current directory:

Get-ChildItem -File

  • List items in the current directory, including hidden items:

Get-ChildItem -Hidden

  • List items in a directory other than the current one:

Get-ChildItem -Path {{path\to\directory}}