Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to make a folder hidden and unsearchable?

28 Dec 2014   #1
Jeune Padawan

Windows 7 Professional 64 bit
 
 
How to make a folder hidden and unsearchable?

Hey! I had an external hard drive on which I had an hidden and unsearchable folder on it. Everything was working well. I was using 1 bat file to hide it, and one bat file to show it. However, a few days ago, I dropped it on the ground and it's dead(the head is literally destroyed ). Now that I'm trying to make another folder hidden and unsearchable on another external hard drive, it's not working! Here is what my bat files do:

hide.bat

Code:
@echo off
cd G:\Fichier\Test\config\fonts
attrib +s +h "Test Files" \*.* /S /D
attrib +s +h "Test Files"
EXIT
show.bat
Code:
@echo off
cd G:\Fichier\Test\config\fonts
attrib -s -h "Test Files" \*.* /S /D
attrib -s -h "Test Files"
EXIT
My folder "Test Files" is located at "G:\Fichier\Test\config\fonts\Test Files".

When I run the bat file, it hides it and everything but when I try to search for something, it still shows up! It shows up all of the files inside the folder I had just hidden. I went in the folder options and disabled the option to show hidden files and it still shows everything inside. From what I remember, last time I had it checked to "Show hidden files" on my other drive and I still couldn't see it or search for what was inside of it!

Thank you very much for any help! I appreciate it


My System SpecsSystem Spec
.
28 Dec 2014   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hey Jeune,
Quote   Quote: Originally Posted by Jeune Padawan View Post
When I run the bat file, it hides it and everything
The second attrib command is hiding the folder, but because the first attrib command in each of your batch files are suffering from incorrect parameter format, Hide/Show .bat is not hiding/'showing' everything inside the folder which is why you are able to search the items inside it.

Below is my fix for Hide.bat:
Code:
@echo off
cd /D G:\Fichier\Test\config\fonts
attrib +S +H +I "Test Files\*" /S /D
attrib +S +H +I "Test Files"
EXIT
You should changes to Show.bat accordingly.
My System SpecsSystem Spec
28 Dec 2014   #3
Jeune Padawan

Windows 7 Professional 64 bit
 
 

I LOVE YOU I LOVE YOU I LOVE YOU I LOVE YOU!!!!!!!!!!

Thank you so much! I had read tons of thread and yet had never found that answer! I am very much grateful! Plus, I don't even see the file with the option "Show hidden files" checked!

Thanks!!
My System SpecsSystem Spec
.

28 Dec 2014   #4
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Glad you've found what you're looking for, Jeune.

Remember to mark the thread as solved.

And Welcome to SevenForums.
My System SpecsSystem Spec
Reply

 How to make a folder hidden and unsearchable?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
TextHider: Make text invisible + hidden
A standalone program(EXE) is available at post #5, followed by updates in later posts. To "hide" text means to transform it to a coded set of spaces so it looks invisible. To "store it invisibly in a file" means to not actually store the "hidden" text in a file, but in a property for a file, so...
Free Developer Programs and Projects
Folder Option problem - Hidden folder is not Hidden
Hello my name is kslim So I don't know when since my computer's hidden folder doesn't hidden anymore the folder should be in semitransparent but it doesn't look like it I've check the folder option and yet it didn't solve the problem :confused: Any help would be grateful for me Thanks
General Discussion
How to make a folder AND its contents hidden and unsearchable?
I made the folder hidden using this command in the command prompt: attrib +s +h "foldername" This makes the folder hidden and not show up in search results, HOWEVER, if I search for the name of a file within that folder, it will appear in the search results. How do I make the folder AND its...
General Discussion
Making a unsearchable 'system' folder...
I want to create my own folder that is unsearchable, just like how the contents of c:\windows do not show up when you do a root search. I have the 'dont search system folders' option set, and sure enough I have tested it works with c:\windows, however my new folder is still showing up. I created a...
General Discussion
xcopy - destination folder becomes a hidden system folder - why?
Hi, I've created a batch file containing the xcopy command to copy the entire partitioned drive to a folder on an external hard drive. However, when it is executed it works fine but the destination folder, called Backup, becomes a hidden system folder. Does any one know why this is the...
General Discussion
Virus made the windows folder a hidden system folder
I got a virus on my pc, and the windows foulder became a hidden system foulder I then scanned it with norton, it removed the virus, and now it wants me to reboot, is it safe to reboot?
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:10.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App