Board index » delphi » Check the Folder Options Hide File Extension setting

Check the Folder Options Hide File Extension setting

Hi all.

Does anyone know how to check the Windows Folder Option, "Hide file
extensions for known file types" from a D7 application?

Any help would be appreciated.

Regards

Bob

 

Re:Check the Folder Options Hide File Extension setting


Quote
"Bob Zirbel" <bob.zir...@businessfitness.net> wrote:
>Does anyone know how to check the Windows Folder Option, "Hide file
>extensions for known file types" from a D7 application?

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"HideFileExt"=dword:00000000

The setting here is 0 to make them visible; 1 to hide the extensions.

Good luck.

Kurt

Re:Check the Folder Options Hide File Extension setting


In article <42c4b...@newsgroups.borland.com>, bob.zir...@businessfitness.net

Quote
(Bob Zirbel) wrote:
> Does anyone know how to check the Windows Folder Option, "Hide file
> extensions for known file types" from a D7 application?

Uses
  ShlObj;

Function IsHideExtensionsSet : Boolean;
Var
  ShellFlags : TShellFlagState;
Begin
  SHGetSettings(ShellFlags, SSF_SHOWEXTENSIONS);
  Result := ShellFlags.Data And SSF_SHOWEXTENSIONS = 0;
End;

Matthew

Re:Check the Folder Options Hide File Extension setting


Thank you both for your help.

Regards

Bob

Quote
"Bob Zirbel" <bob.zir...@businessfitness.net> wrote in message

news:42c4ba0d@newsgroups.borland.com...
Quote
> Hi all.

> Does anyone know how to check the Windows Folder Option, "Hide file
> extensions for known file types" from a D7 application?

> Any help would be appreciated.

> Regards

> Bob

Other Threads