Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unhide/hide file extensions for known file types 1

Status
Not open for further replies.

michaenh

Programmer
Aug 7, 2002
205
NO
Hi everyone.

Do anyone know how to turn on or off the file extension from Delphi? Any simple code?

Instead of manual turn it on or off from the folder option in the Windows Explorer.

Million thanks
Michael
 
Jeff Johnson wrote in microsoft.public.vb.general.discussion:

//----------------------
It's a registry setting:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

The value is HideFileExt. Set it to 1 to hide, 0 to show. To force Explorer
to update its display is another matter. Perhaps you could send a
WM_SETTINGCHANGE message.

//-----------------------

I haven't tried this myself. Delphi does have a TRegistry class (You need to include the "Registry" unit in your uses clause) to aid you in your quest. Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Hi bbegley.

Thank you for your guide and help.
Its just great to be here!

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top