Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
DirChange(DirScript()) NetAdaptersKey = "System\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}" Handle = RegOpenKey(@REGMACHINE,NetAdaptersKey) AdapterList = RegQueryKeys(Handle) RegCloseKey(Handle) Count = ItemCount(AdapterList,@TAB) For i = 1 To Count Adapter = ItemExtract(i,AdapterList,@TAB) ConnectionKey = StrCat(NetAdaptersKey,"\",Adapter,"\Connection") If RegExistValue(@REGMACHINE,StrCat(ConnectionKey,"[MediaSubType]")) Wireless = RegQueryDword(@REGMACHINE,StrCat(ConnectionKey,"[MediaSubType]"))==2 If Wireless PnpInstanceID = RegQueryValue(@REGMACHINE,StrCat(ConnectionKey,"[PnpInstanceID]")) RunHide("Devcon.exe",StrCat('Disable "@',PnpInstanceID,'"')) EndIf EndIf Next Exit
Article ID: W17419
File Created: 2008:04:10:15:09:42
Last Updated: 2008:04:10:15:09:42