gpt4 book ai didi

powershell - 显示文件名

转载 作者:行者123 更新时间:2023-12-04 02:17:27 27 4
gpt4 key购买 nike

我必须使用 获取并显示特定的文件名.

假设在特定位置有 5 个文件,我需要显示每个文件名。

最佳答案

您正在寻找 Get-ChildItem cmdlet。要获取文件名,只需选择 BaseName属性(property):

Get-ChildItem 'yourPath' | select BaseName

关于powershell - 显示文件名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39761059/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com