好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > 本地連接禁用/啟用批處理腳本

本地連接禁用/啟用批處理腳本

熱門標(biāo)簽:外呼系統(tǒng)免費招代理 深圳外呼系統(tǒng)收費 怎么看地圖標(biāo)注 拉薩外呼系統(tǒng)業(yè)務(wù) 外呼線路中繼線是什么 合肥高德地圖標(biāo)注 外呼系統(tǒng)telrobot 廣州ai電銷機器人一般多少錢 百度地圖標(biāo)注是什么意思

復(fù)制代碼 代碼如下:

Const ssfCONTROLS = 3 

sConnectionName = "本地連接"  '可改成需要控制的連接名稱,如"無線網(wǎng)絡(luò)連接"等 

sEnableVerb = "啟用(A)" 
sDisableVerb = "禁用(B)"   'XP系統(tǒng)中應(yīng)為 "停用(B)" 

set shellApp = createobject("shell.application") 
set oControlPanel = shellApp.Namespace(ssfCONTROLS) 

set oNetConnections = nothing 
for each folderitem in oControlPanel.items 
 if folderitem.name  = "網(wǎng)絡(luò)連接" then 
   set oNetConnections = folderitem.getfolder: exit for 
 end if 
next 

if oNetConnections is nothing then 
 msgbox "未找到網(wǎng)絡(luò)連接文件夾" 
 wscript.quit 
end if 

set oLanConnection = nothing 
for each folderitem in oNetConnections.items 
 if lcase(folderitem.name)  = lcase(sConnectionName) then 
   set oLanConnection = folderitem: exit for 
 end if 
next 

if oLanConnection is nothing then 
 msgbox "未找到 '"  sConnectionName  "' item" 
 wscript.quit 
end if 

bEnabled = true 
set oEnableVerb = nothing 
set oDisableVerb = nothing 
s = "Verbs: "  vbcrlf 
for each verb in oLanConnection.verbs 
 s = s  vbcrlf  verb.name 
 if verb.name = sEnableVerb then  
   set oEnableVerb = verb   
   bEnabled = false 
 end if 
 if verb.name = sDisableVerb then  
   set oDisableVerb = verb   
 end if 
next 

'debugging displays left just in case... 

'msgbox s ': wscript.quit 
'msgbox "Enabled: "  bEnabled ': wscript.quit 

'not sure why, but invokeverb always seemed to work  
'for enable but not disable.   

'saving a reference to the appropriate verb object  
'and calling the DoIt method always seems to work. 

if bEnabled then 
'  oLanConnection.invokeverb sDisableVerb 
 oDisableVerb.DoIt 
else 
'  oLanConnection.invokeverb sEnableVerb 
 oEnableVerb.DoIt 
end if 

'adjust the sleep duration below as needed... 

'if you let the oLanConnection go out of scope 
'and be destroyed too soon, the action of the verb 
'may not take... 

wscript.sleep 400 

您可能感興趣的文章:
  • BAT 批處理腳本教程(詳細(xì)篇腳本之家補充)
  • Windows server利用批處理腳本判斷端口啟動tomcat的方法
  • Windows下編寫批處理腳本來啟動和重置Oracle數(shù)據(jù)庫
  • Windows下bat批處理腳本使用telnet批量檢測遠程端口小記
  • 實現(xiàn)android應(yīng)用程序自動化測試的批處理腳本
  • ip地址切換批處理腳本分享
  • 批量安裝windows補丁的批處理腳本
  • QQ多帳號自動登錄批處理腳本
  • DOS批處理腳本語言簡介與詳細(xì)說明
  • Windows注冊表中修改UAC(用戶賬號控制)及批處理腳本

標(biāo)簽:廣安 臺灣 周口 玉林 延安 六安 嘉興 漳州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《本地連接禁用/啟用批處理腳本》,本文關(guān)鍵詞  本地,連接,禁用,啟用,批處理,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《本地連接禁用/啟用批處理腳本》相關(guān)的同類信息!
  • 本頁收集關(guān)于本地連接禁用/啟用批處理腳本的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 欧美性?XX?XX?XXX动态| 亚洲男同志gay同网站可播放| 欧洲一级片| 97se亚洲国产一区二区三区| 超碰视频在线播放| 丰满上司的美乳| 日b影院| 久久综合久久伊人| 亚洲码欧美码一区二区三区| 欧美精品久久一区二区三区免费| 精品国产一级久久A片性教育片| 亚洲人成在线精品| 小雪爽?好大?快?深点| 免费午夜无码婬片AA片在线蜜爱 | 干处女视频| 无码亚洲日韩久久久爽爽| 美女光身| 三年在线观看免费大全哔哩哔哩| free性开放欧美群做a| JLZZJLZZ亚洲乱熟无码| 国产全肉乱妇杂乱视频| 亚洲国产精品第一区二区| 郑厅长玩韩蕊第一次| 国产成人精品白浆免费视频试看 | 亚洲娇小性xxxx| 欧美综合缴情五月丁香六月婷| 控制高潮边缘控制排泄| 欧美性视频在线激情| 男女H黄动漫啪啪无遮挡软件| 国产精品毛片一区| 亚洲国产成人精品久久| 久久亚洲精品专区蓝色区| 99在线国产| 亚洲精品一区二区三区四区五区六区| 亚洲第一区精品观看| 国产在线观看91精品不卡| 亚洲精品无码99久久| XXwww日本69| 婚闹不堪入目的福利视频| 不穿内衣的瑜伽教练| 麻豆中国做受xxx实指|