主页 > 知识库 > 用vbscript实现隐藏任务栏图标的脚本

用vbscript实现隐藏任务栏图标的脚本

热门标签:外呼系统说话声音小怎么办 上海办理400电话选号 墨西哥地图标注app 龙岩400电话申请 机器人打电销适用于美业吗 企业400电话办理价钱低 天津智能外呼系统排名 外呼系统群 智云亿呼电话机器人
Message = "To work correctly, the script will close"  vbCR
  Message = Message  "and restart the Windows Explorer shell."  vbCR
  Message = Message  "This will not harm your system."  vbCR  vbCR
  Message = Message  "Continue?"
  X = MsgBox(Message, vbYesNo, "Notice")
  If X = 6 Then
  On Error Resume Next
  Dim WSHShell, n, MyBox, p, t, errnum, vers
  Dim itemtype
  Dim enab, disab, jobfunc
  Set WSHShell = WScript.CreateObject("WScript.Shell")
  p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayItemsDisplay"
  itemtype = "REG_DWORD"
  enab = "ENABLED"
  disab = "DISABLED"
  jobfunc = "Notification Icons are now "
  t = "Confirmation"
  Err.Clear
  n = WSHShell.RegRead (p)
  errnum = Err.Number
  if errnum > 0 then
   WSHShell.RegWrite p, 0, itemtype
  End If
  If n = 0 Then
   n = 1
  WSHShell.RegWrite p, n, itemtype
  Mybox = MsgBox(jobfunc  disab  vbCR, 4096, t)
  ElseIf n = 1 then
   n = 0
  WSHShell.RegWrite p, n, itemtype
  Mybox = MsgBox(jobfunc  enab  vbCR, 4096, t)
  End If
  Set WshShell = Nothing
  On Error GoTo 0
  For Each Process in GetObject("winmgmts:"). _
   ExecQuery ("select * from Win32_Process where name='explorer.exe'")
   Process.terminate(0)
  Next
  MsgBox "Finished."  vbcr  vbcr , 4096, "Done"
  Else 
  MsgBox "No changes were made to your system."  vbcr  vbcr, 4096, "User Cancelled"
  End If

标签:锡林郭勒盟 齐齐哈尔 阜新 青岛 鄂尔多斯 黄山 承德 丽水

巨人网络通讯声明:本文标题《用vbscript实现隐藏任务栏图标的脚本》,本文关键词  用,vbscript,实现,隐藏,任务栏,;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 下面列出与本文章《用vbscript实现隐藏任务栏图标的脚本》相关的同类信息!
  • 本页收集关于用vbscript实现隐藏任务栏图标的脚本的相关信息资讯供网民参考!
  • 推荐文章