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: Windows 7: Question about making files unsearchable

01 Jun 2015   #1
PyroTea

Windows 7 64 bit
 
 
Windows 7: Question about making files unsearchable

So I've been trying to see if I could make a folder and its sub folders unsearchable by using a .bat file which does seem to work as they do get hidden but when I search specifically for its name its shows up. Is that suppose to happen or am I doing something wrong? This is what my .bat files look like

isitworking.bat (hides it)
@echo off
cd C:\Users\Yami\Desktop\ahoy
attrib +s +h +i C:\Users\Yami\Downloads\"Window VV"\*.* /S /D
attrib +s +h +i C:\Users\Yami\Downloads\"Window VV"
EXIT
isitoff.bat (unhides it)
@echo off
cd C:\Users\Yami\Desktop\ahoy
attrib -s -h -i C:\Users\Yami\Downloads\"Window VV"\*.* /S /D
attrib -s -h -i C:\Users\Yami\Downloads\"Window VV"
EXIT



My System SpecsSystem Spec
.
01 Jun 2015   #2
Alejandro85

Windows 7 Ultimate x64
 
 

Your bat file only sets file attributes, but don't touches at all anything security-related.
The "hidden" attribute only provides "eye candy". It's meant to make file managers able to not show some files that might considered system critical. But that's it, it doesn't enforce anything. Any program is free to interpret it as it pleases, or even ignore it completely. The OS won't do anything about that.

What you really need is file system permissions. That is, you can set the files to be readable by you but not other users. That kind of protection, when properly set, is actively enforced by the kernel itself, so programs will comply it no matter what.
Given that the folder you're trying to "protect" is within your user profile, I don't see anything special done. Just make sure other people use different user accounts and have a good password on yours.
My System SpecsSystem Spec
02 Jun 2015   #3
PyroTea

Windows 7 64 bit
 
 

Ah, thank you for the explanation.
My System SpecsSystem Spec
.

Reply

 Windows 7: Question about making files unsearchable




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Question related to the fan making noise on my PC?
Hi, I have a question related to a sound that my computer is making! Since a while, I can hear the Fan on my computer making noise like it's spinning fast all the time! I*cleaned the fan thinking it would help but it's still noisy so do you have an idea of why it's doing that? Thanks in advance,...
Hardware & Devices
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 :cry:). Now that...
General Discussion
Making files appear above folders
Hi guys. Have a lame question. I want to make files appear above folders in Windows Explorer. I sort my files in this particular folder by Date, and when new files were added, they were all in the beginning of the folder. However, today suddenly the folders started appearing on top, and the...
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 files undeletable
Hi everyone. :) I have Windows 7 HP with 2 user accounts. 1 admin and other under the "users" group. I have a folder on the HD that I don't want the any "user" to access except admin. What I have done is set the folder attributes to hidden and system protected (attrib +s +h). Now the folder is...
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


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 18:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App