Solved

is it possible to hide/show hidden files and folders in windows xp

Posted on 2011-03-17
6
188 Views
Last Modified: 2012-05-11
Hi, when you go in explorer then into tools, folder options and then into view, there is a radio button for show hidden files and folders

is it possible to show hide those from a click of a button?
0
Comment
Question by:eNarc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:stewie123
ID: 35156322
There is no built-in function or keyboard shortcut (hotkey) for this but there are ways to do it.

Here is a link for a program to do it.

https://sourceforge.net/projects/showhiddenfiles/

Here is a link for another way with a discussion on it.

http://www.howtogeek.com/howto/keyboard-ninja/keyboard-ninja-toggle-hidden-files-with-a-shortcut-key-in-windows/

Hope this helps.
0
 
LVL 5

Expert Comment

by:wd123
ID: 35156378
yes, you can setup this option in registry at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN CheckedValue = 00000002 (dword)
0
 
LVL 14

Expert Comment

by:systan
ID: 35166374
hi Sis eNarc,
What's the update? Have you managed to get the solution?
How are you doing there?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:eNarc
ID: 35339858
do u hav to do it with registry?

how do I do it with the registry?

I've been to that location, thre is also showall, whats that?

how would I be able to toggle it with my own app?
0
 
LVL 14

Expert Comment

by:systan
ID: 35376981
Ok, you haven't got it?
Yes, you have to access it on the registry........
Do you know the code to access in the registry?????

You can't find it on the links that "wd123 or stewie123" said.
0
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 500 total points
ID: 35412670

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

Try
unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Registry;

type
  TForm3 = class(TForm)
    btnShow: TButton;
    btnHide: TButton;
    procedure btnShowClick(Sender: TObject);
    procedure btnHideClick(Sender: TObject);
  private
    procedure ShowHiddenFilesAndFolders(const AShow: Boolean);
  public
    { Public declarations }
  end;

var
  Form3: TForm3;

implementation

{$R *.dfm}

procedure TForm3.btnHideClick(Sender: TObject);
begin
  ShowHiddenFilesAndFolders(False);
end;

procedure TForm3.btnShowClick(Sender: TObject);
begin
  ShowHiddenFilesAndFolders(True);
end;

procedure TForm3.ShowHiddenFilesAndFolders(const AShow: Boolean);
var
  Reg: TRegistry;
  Value: DWORD;
begin
  if AShow then
    Value := 1
  else
    Value := 2;

  Reg := TRegistry.Create;
  try
    Reg.RootKey := HKEY_CURRENT_USER;

    if Reg.KeyExists('Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced') then
      if Reg.OpenKey('Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced', False) then
      begin
        Reg.WriteInteger('Hidden', Value);
        Reg.CloseKey;
      end;
  finally
    FreeAndNil(Reg);
  end;

end;

end.

Open in new window

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question