equivalent of (dir/b > files.txt) in PowerShell

后端 未结 6 1159
借酒劲吻你
借酒劲吻你 2021-02-05 05:04
dir/b > files.txt

I guess it has to be done in PowerShell to preserve unicode signs.

6条回答
  •  醉梦人生
    2021-02-05 05:43

    Get-ChildItem actually already has a flag for the equivalent of dir /b:

    Get-ChildItem -name (or dir -name)

提交回复
热议问题