国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > VBScript > 正文

用vbscript實現隱藏任務欄圖標的腳本

2020-06-26 18:15:13
字體:
來源:轉載
供稿:網友
一個可以隱藏任務欄圖標的腳本,方便需要隱藏任務欄圖標的朋友
 
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 
 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 青海省| 香港| 济南市| 丰原市| 柘城县| 天柱县| 汉川市| 屏南县| 遂平县| 青铜峡市| 莱州市| 临海市| 博罗县| 深泽县| 武穴市| 达拉特旗| 穆棱市| 原平市| 民勤县| 台前县| 阿合奇县| 深泽县| 荥阳市| 海淀区| 巴东县| 泽普县| 阿荣旗| 金寨县| 会东县| 稷山县| 察雅县| 屏东县| 阿合奇县| 巧家县| 长乐市| 西林县| 抚顺县| 阆中市| 平昌县| 德庆县| 和林格尔县|