佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > 用vbscript實現(xiàn)隱藏任務欄圖標的腳本

用vbscript實現(xiàn)隱藏任務欄圖標的腳本

熱門標簽:呼叫中心市場需求 鐵路電話系統(tǒng) 服務器配置 檢查注冊表項 網(wǎng)站文章發(fā)布 銀行業(yè)務 美圖手機 智能手機
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

標簽:上海 新疆 樂山 河南 長治 紅河 滄州 沈陽

巨人網(wǎng)絡通訊聲明:本文標題《用vbscript實現(xiàn)隱藏任務欄圖標的腳本》,本文關鍵詞  ;如發(fā)現(xiàn)本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    宝应县| 甘泉县| 武定县| 台湾省| 望城县| 永嘉县| 上犹县| 灵寿县| 泸水县| 广德县| 庆安县| 双峰县| 济南市| 百色市| 北票市| 炉霍县| 东方市| 高邑县| 富裕县| 金寨县| 酒泉市| 新源县| 大姚县| 丰城市| 旌德县| 公主岭市| 绵阳市| 林芝县| 江陵县| 周宁县| 朝阳县| 高雄县| 长沙市| 嘉荫县| 山阴县| 达州市| 五大连池市| 穆棱市| 甘泉县| 呼图壁县| 江津市|