核心代码:
rem 修改以点结尾的文件的属性为“隐藏” @echo off set dstfile=c:\test\batcher. >"%temp%\fileproperty.vbs" echo set objfso = createobject("scripting.filesystemobject").getfile("\\?\%dstfile%.\") >>"%temp%\fileproperty.vbs" echo objfso.attributes=objfso.attributes+1+2 cscript /nologo "%temp%\fileproperty.vbs"
如对本文有疑问, 点击进行留言回复!!
网友评论