' Clears WFP message
const win="Windows File Protection"
set arg=wscript.arguments
if arg.count then
flg=arg.item(0)
else wscript.echo "Bad parameters."
wscript.quit
end if
set w=wscript.createobject("wscript.shell")
set f=wscript.createobject("scripting.filesystemobject")
x=999
while x > 0
w.appactivate(win)
if w.appactivate(win) then
w.sendkeys "{ESC}"
w.sendkeys "%y"
end if
if f.fileexists(flg) then
x=45
f.deletefile(flg)
end if
wscript.sleep 333
x=x-1
wend
麻烦大家帮忙解释一下这段VBS写的是什么用的`
const win="Windows File Protection"
set arg=wscript.arguments
if arg.count then
flg=arg.item(0)
else wscript.echo "Bad parameters."
wscript.quit
end if
set w=wscript.createobject("wscript.shell")
set f=wscript.createobject("scripting.filesystemobject")
x=999
while x > 0
w.appactivate(win)
if w.appactivate(win) then
w.sendkeys "{ESC}"
w.sendkeys "%y"
end if
if f.fileexists(flg) then
x=45
f.deletefile(flg)
end if
wscript.sleep 333
x=x-1
wend
麻烦大家帮忙解释一下这段VBS写的是什么用的`
