JSI Tip 8490. More on File/Folder name case preservation.

In tip 1349 ยป File/Folder name case preservation, I explained that Windows NT-based operating systems (using NTFS) preserve that case of the file and folder names that you type, but display them with the first letter capitalized and the remaining letters in lowercase.

A new Value Name, DontPrettyPath, a REG_DWORD data type, at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, can be set to 1 to cause Explorer to display the case of a file and folder name exactly as entered.

I have ammended JSIShowCase.bat to set the DontPrettyPath Value Name, to insure compatibility with all versions of Windows NT (Windows 2000, Windows XP, Windows Server 2003, and future).

JSIShowCase.bat has no parameters. The user will need to log off and log on for these settings to become effective.

JSIShowCase.bat contains:

@echo off
if exist JSISCE.reg del /q JSISCE.reg
regedit /a JSISCE.reg HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState
set s2=N
for /f "Skip=3 Tokens=*" %%i in ('type JSISCE.reg') do call :parse "%%i"
if exist JSISCE.reg del /q JSISCE.reg
@echo REGEDIT4
@echo \[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\]
@echo "DontPrettyPath"=dword:00000001
@echo \[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState\]
@echo %s1%%s2%%s3%
regedit /s JSISCI.reg
del /q JSISCI.reg
goto :EOF
set str=%1
if not "%str:~2,8%" EQU "Settings" goto :EOF
set str=%str:"=%
set str=%str:Settings="Settings"%
set s1=%str:~0,27%
set s2=%str:~27,1%
set s3=%str:~28,99%
IF "%s2%" GTR "7" goto :EOF
goto f%s2%
set s2=8
goto :EOF
set s2=9
goto :EOF
set s2=a
goto :EOF
set s2=b
goto :EOF
set s2=c
goto :EOF
set s2=d
goto :EOF
set s2=e
goto :EOF
set s2=f

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.