gpt4 book ai didi

windows - 更改文件夹的“显示隐藏的项目”设置

转载 作者:可可西里 更新时间:2023-11-01 11:51:24 25 4
gpt4 key购买 nike

存储在特定文件夹上的“显示/隐藏项目”设置在哪里?

我希望能够以编程方式更改它,希望是在 Powershell 中。

最佳答案

那么试试这个:

$file = "c:\temp\t.txt"
# Hidde $file
Set-ItemProperty -Path $file -Name attributes -Value ([io.fileattributes]::Hidden)
# Remove Hidden if set
Set-ItemProperty -Path $file -Name attributes -Value ((Get-ItemProperty $file).attributes -bxor ([io.fileattributes]::Hidden))

关于windows - 更改文件夹的“显示隐藏的项目”设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28688185/

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