如何使用批处理将文件设置为非隐藏?

How do I set a file to non-hidden with batch?

我正在尝试在批处理脚本中将文件的属性编辑为非隐藏。到目前为止我没有运气,有人可以帮我提供代码吗?

你可以使用命令 attrib -H <filename> 在你的批处理脚本中。


参考:http://www.easydos.com/attrib.html

attrib -h myfile.txt 要么 attrib -h "c:\filepath\Myfile.txt"

更多信息: https://technet.microsoft.com/en-us/library/bb490868.aspx

attrib -h #filenamehere#.txt

将#filenamehere#替换为文件路径