Solved

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

Posted on 2011-03-17
6
186 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
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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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:
ewangoya 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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