大家好,我用VBS在注册表里新建了一个值,下面是所用的脚本,
Set WSHShell=WScript.CreateObject("WScript.Shell")
KeyName_11="1234"
KeyData_12="4321"
RegPath="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\"
DataType="REG_SZ"
Function ValueAdd(KeyName,KeyData)
WSHShell.RegWrite RegPath&KeyName,KeyData,DataType
End Function
Call ValueAdd(KeyName_11,KeyData_12)