@echo off
echo.1.设置显示扩展名\显示当前文件夹路径;2.设置不显示扩展名\不显示当前文件夹路径
set /p select=
if "%select%"=="1" (
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD
/d 0 /f >nul
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState /v FullPathAddress /t
REG_DWORD /d 1 /f >nul
)
if "%select%"=="2" (
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD
/d 1 /f >nul
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState /v FullPathAddress /t
REG_DWORD /d 0 /f >nul
)
cls
echo.设置完成,刷新后生效!
pause>Nul
写点东西费脑子啊,加点分吧,呵.