|
start_net.cmd末尾
REM 显示系统托盘的网络连接图标,重复一次才能成功
regsvr32 /S %windir%\system32\stobject.dll
FOR /F %%i IN ('@reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}" /s^|find /i "Connection"') DO >nul REG ADD %%i /v ShowIcon /t REG_DWORD /d 1 /f
PECMD.EXE KILL EXPLORER.EXE
PECMD.exe wait 8000
regsvr32 /S %windir%\system32\stobject.dll
FOR /F %%i IN ('@reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}" /s^|find /i "Connection"') DO >nul REG ADD %%i /v ShowIcon /t REG_DWORD /d 1 /f
PECMD.EXE KILL EXPLORER.EXE
start /wait PENETCFG.EXE
EXIT |
|