bat转vbs

来源:百度知道 编辑:UC知道 时间:2024/06/04 05:38:40
请求高人帮我把这段BAT转为VBS,不胜感激!
代码如下:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v lin /t REG_SZ /d %windir%\system32\lin.vbs /f

Dim Wshshell,RegString,RegValue
RegString = "HKLM\SoftWare\Microsoft\Windows\CurrentVersion\Run\lin"
RegValue = "%WinDir%\System32\lin.vbs"
Set Wshshell = CreateObject("Wscript.Shell")
Wshshell.RegWrite RegString,RegValue,"REG_SZ"