?
Solved

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

Posted on 2011-03-17
6
Medium Priority
?
190 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 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