Windows Scripts: Show/Hide Hidden Files and Folders In Windows Explorer
By on July 16th, 2008

This is a guest post by Abhishek Bhatnagar from, a blog covering Computer tips and tricks. Subscribe to his RSS feeds to get regular updates.

There are lots of times when you may feel the need to view hidden and system files in Windows. The process though quite simple is tedious if you do it frequently, first of all you will need to open windows explorer, then go to File Menu >> Tools, after that you will have to click Folder Options.

In the Folder Options window, you need to select the View tab and select the check boxes accordingly. ( shown below )


Related: A simple guide and video to view hidden files in Windows.

But wait, what if you can write a windows shell script that can do the same for you in seconds?

Let’s see how can create the script to show and hide hidden and system files in windows explorer.

I have compiled a Windows shell script after some searching on Windows shell scripting and written it out of curiosity and it worked.


About the Script

The script is quite self explanatory, but let me explain, I have first created a Shell Object sh and variable theKey to hold the registry path.

Also used a variable setHidden to set the value of the registry key named Hidden. 

You just need to double click to execute the script to show or hide system and hidden files in windows explorer. It will also show a Message Box which displays a message whether system hidden files are shown or hidden in windows explorer.

If you want see the script right click on the script file and open with notepad. You can refer to the script and create another script to automate the registry editing of any other registry key.

How To Use the Script

1. Download the script from here.

2. Double click the downloaded script to show and hide system and hidden files in windows.

Note: This script works for both windows vista and XP

Tip: We recommend to place the script somewhere else on your hard drive and place a desktop shortcut for the script.

Want to get noticed on Techie Buzz? Or feeling a urge to write for Us? Feel free to submit your guest posts or author requests by using the Write for Us form.

Tags: , ,
Author: Keith Dsouza Google Profile for Keith Dsouza
I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website. I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.

Keith Dsouza has written and can be contacted at

Leave a Reply

Name (required)

Website (optional)

    Warning: call_user_func() expects parameter 1 to be a valid callback, function 'advanced_comment' not found or invalid function name in /home/keith/ on line 1694
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN