1. 显示/隐藏文件的扩展名 (运行并刷新后生效)
@echo off
if not exist c:windows\wind.txt (
break>c:windows\wind.txt
reg add hkcu\software\microsoft\windows\currentversion\explorer\advanced /v hidefileext /t reg_dword /d 0 /f
) else (
reg add hkcu\software\microsoft\windows\currentversion\explorer\advanced /v hidefileext /t reg_dword /d 1 /f
del c:windows\wind.txt
)
2. 启用/断开宽带连接
@echo off
if not exist c:windows\wind.txt (
break>c:windows\wind.txt
rasphone /d 宽带连接
) else (
rasphone /h 宽带连接
del c:windows\wind.txt
)