Solved Windows 7: Question about making files unsearchable

PyroTea

New member
Local time
1:20 PM
Messages
2
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 Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 64 bit
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Ah, thank you for the explanation.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 64 bit
Back
Top