Windows 7: Question about making files unsearchable


  1. Posts : 2
    Windows 7 64 bit
       #1

    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 Computer


  2. Posts : 2,468
    Windows 7 Ultimate x64
       #2

    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


  3. Posts : 2
    Windows 7 64 bit
    Thread Starter
       #3

    Ah, thank you for the explanation.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 03:13.
Find Us