The HideFileExt key in HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced. The value 0 indicates that the display extension is 1 and not displayed.
@ Echo offCOLOR 3 Fecho *********************************** * ******************* echo. echo. show or hide the file extension batechohttp: // blog.csdn.net/ago _ 2009echo.echo ************************************* * ***************** echo 1. display file extension echo 2. hide File Extension set/p input = select: if % input % EQU 1 (echo starts hiding file extension... & reg add "HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced"/v HideFileExt/t REG_DWORD/d 00000000/f) else (echo starts to display the file extension... & reg add "HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced"/v HideFileExt/t REG_DWORD/d 00000001/f) exit