当前位置:网站首页>powershell命令仅输出目录列表
powershell命令仅输出目录列表
2022-06-29 18:41:00 【姚华】
简介: powershell命令仅输出目录列表
powershell命令仅输出目录列表
大于powershell 3.0版本可以使用Get-Item、ls、dir、gci
Get-Item
Get-ChildItem -Directory
Get-ChildItem "$path" | where {$_.Attributes -match'Directory'}
Get-ChildItem "$path" -attributes D -Recursels(alias)
dir
小于powershell 3.0版本
Get-ChildItem -Recurse | ?{ $_.PSIsContainer }Copy
如果你想要目录的原始字符串名称,你可以这么做
Get-ChildItem -Recurse | ?{ $_.PSIsContainer } | Select-Object FullName边栏推荐
- layer. prompt
- 1. use stm32cubemx to establish stm32g030c8t6 project
- PHP 输出两个指定日期之间的所有日期
- These advantages of the Institute are really fragrant! The landing rate is still very high!
- svg画圆路径动画
- 程序员值得收藏的几款代码截图美化工具播
- C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises
- Shandong University project training (VIII) design rotation map entry page
- 习题8 #第8章 Verilog有限状态机设计-4 #Verilog #Quartus #modelsim
- JS converts seconds to "2h30min50s" format
猜你喜欢

第02章_MySQL的数据目录

Cantata 9.5版本已正式通过SGS-TÜV认证,符合所有主要软件安全标准

Apache InLong百万亿级数据流处理

Notes on spintronics - zhangshufeng

2. 银河麒麟离线模式下如何安装MySQL数据库

Seven cattle image access parameters (thumbnails are small in size to avoid wasting traffic)

1. use stm32cubemx to establish stm32g030c8t6 project

Understanding of strong caching and negotiation caching

龙canvas动画

75. nearest common ancestor of binary search tree
随机推荐
Redis(一)--Redis入门(1)--Redis介绍、安装与启动、常用配置
ChainSafe跨链桥部署教程
Panda Parkour JS games code
75. nearest common ancestor of binary search tree
Error [warning] neural network information was performed on socket 'RGB', depth frame is aligned to socket
Apache Doris basic usage summary
The 8th "Internet +" competition - cloud native track invites you to challenge
Shandong University project training (VI) Click event display line chart
JS-判断数组键名是否存在
These advantages of the Institute are really fragrant! The landing rate is still very high!
面试题 10.10. 数字流的秩
C Primer Plus 第12章_存储类别、链接和内存管理_代码和练习题
Tag filtering and SQL filtering of rocketmq
熊猫跑酷js小游戏代码
Apache inlong million billion level data stream processing
【️爬虫必备->Scrapy框架从黑铁到王者️】初篇——万字博文详解(建议收藏)
[笔记]再笔记--边干边学Verilog HDL –008
山东大学项目实训(八)设计轮播图进入页面
数据仓库模型分层ODS、DWD、DWM实战
微信推出图片大爆炸功能;苹果自研 5G 芯片或已失败;微软解决导致 Edge 停止响应的 bug|极客头条