- ·上一篇文章:VBS脚本清除电脑中的痕迹
- ·下一篇文章:WINDOWSXP下确定最后的盘符
- ·百度中搜索更多的关于“修改xp任务拦状态”相关内容
- ·谷歌中搜索更多的关于“修改xp任务拦状态”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
修改xp任务拦状态
Option Explicit
'Declare variables
Dim WSHShell, n, MyBox, p, p1, t, cn, Caption, itemtype, errnum
'set variables and Shell
Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarGroupSize"
itemtype = "REG_DWORD"
t = "Change Taskbar Grouping Level"
'This section reads the current value if any and puts it in an Input Box
'where you may change it as you like
On Error Resume Next
n = WSHShell.RegRead(p)
errnum = Err.Number
If errnum <> 0 then
n = 0
End If
Caption = "Your current Value is: " & n & vbCR & vbCR
Caption = Caption & "A value of 2 will cause the Taskbar buttons to always group." & VBCR & vbCR
Caption = Caption & "Input your new value."
On Error Goto 0
cn = InputBox(Caption, t, n)
If cn <> "" Then
WSHShell.RegWrite p, cn, itemtype
End If
If cn <>"" Then
MyBox = MsgBox("You must log off/log on for the changes to take effect", vbOKOnly,"Done")
End If

