您现在的位置是:网站首页> 编程资料编程资料
Powershell中显示隐藏文件的方法_PowerShell_
2023-05-26
309人已围观
简介 Powershell中显示隐藏文件的方法_PowerShell_
支持PS3.0及以后版本。
当你使用 Get-ChildItem 检索文件,默认是不显示隐藏文件的。
要包含隐藏文件,请使用 –Force 参数。
PS> Get-ChildItem -Path $home -Force
如果只需要显示隐藏文件,可以使用参数-Hidden ,但它只支持PS3.0。
PS> Get-ChildItem -Path $home -Hidden
Directory: C:\Users\Tobias
Mode LastWriteTime Length Name
---- ------------- ------ ----
d--h- 08.01.2012 10:38 AppData
d--hs 08.01.2012 10:38 Application Data
d--hs 08.01.2012 10:38 Cookies
d--hs 08.01.2012 10:38 Local Settings
d--hs 08.01.2012 10:38 My Documents
d--hs 08.01.2012 10:38 NetHood
(...)
相关内容
- PowerShell操作Excel、CSV详细介绍_PowerShell_
- Python中调用PowerShell、远程执行bat文件实例_PowerShell_
- PowerShell实现在多个文件中检索关键字功能_PowerShell_
- PowerShell脚本实现检测网络内主机类型_PowerShell_
- 在cmd中直接运行PowerShell脚本文件的方法_PowerShell_
- PowerShell查看进程的所属用户_PowerShell_
- Powershell实现捕获系统内置EXE程序的异常_PowerShell_
- Powershell实现克隆NTFS文件系统权限_PowerShell_
- PowerShell中获取Windows系统序列号的脚本分享_PowerShell_
- PowerShell脚本中查看网卡的高级属性_PowerShell_
