如果用vbs删除注册表项

来源:百度知道 编辑:UC知道 时间:2024/04/28 23:09:39
如果想删除注删表项的全部内容要怎么办
如删HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options

vbs里要怎么写

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.Popup "Delete RegKey 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options' ?"
WSHShell.delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\"
Popup为弹出确定
RegDelete删除
主键与键值的区别在于主键名后有“\”,键值没有“\”;