wscript.sleep 10000
set ws=createobject("wscript.shell")
ws.run "psexec.exe -l -d ""C:\Program Files (x86)\Tencent\QQ\Bin\QQ.exe"""
wscript.quit
将VBS脚本添加到自动启动项:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v autovbs /t reg_sz /d "c:\program files\auto.vbs" /f
标签:windows, vbs, windows延时启动程序, windows自动启动