Solved

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

Posted on 2011-03-17
6
187 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
Independent Software Vendors: 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

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Yen format 3 62
Delphi problems to abort a printjob 9 36
How to make Sign in, using Clientdataset? 1 34
firemonkey Android Listview Sort items 7 75
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

696 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