扩展名显示与隐藏

View Code
1 @echo off
2 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 1 /f

隐藏扩展名

View Code
1 @echo off
2 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f

显示扩展名

原文地址:https://www.cnblogs.com/daishuguang/p/3056758.html