通过vbs修改以点结尾的文件的属性为隐藏
核心代码:
rem 修改以点结尾的文件的属性为“隐藏” @echo xIwwbboff set DstFile=C:\test\batcher. >"%temp%\FileProperty.vbs" echo Set objFSO = www.devze.comCreateObject("Scri编程客开发者_Python教程栈pting.FileSystemObject").GetFile("\\?\%DstFile%.\") >>"%temp%\FileProperty.vbs" echo objFSO.Attributes=objFSO.xIwwbbAttributes+1+2 cscript /nologo "www.devze.com%temp%\FileProperty.vbs"
精彩评论