似乎人们只是无法获得足够的有关在Windows中创建隐藏文件夹或锁定文件夹的操作指南。我已经写了两篇关于如何隐藏文件夹的指南,一篇是使用Windows(Windows)的一个非常简单的内置功能,另一篇是使用一些Windows脚本。在后一篇文章中,我还提到了一个免费程序,您可以使用它来完全删除文件夹的可见性。(Folder Hide)最后,我还写过关于在Windows中隐藏整个(Windows)驱动器(drive letter)号的文章。
但是还有另(ANOTHER)一种方法可以隐藏文件和文件夹,这与我上面提到的第一篇文章类似,但更安全一些。它实际上涉及使用命令提示符(command prompt)和内置的Windows 功能(Windows function)来更改文件或文件夹(file or folder)的某些属性。一旦更改了属性,系统就无法看到这些文件。
我喜欢这种方法的原因是因为它不涉及任何人们可能会注意到的第三方软件,并且它不像我写的第一种方法那样简单,您只需将文件或文件夹(file or folder)的属性更改为隐藏和任何人可以通过将Windows 资源管理器(Windows Explorer)设置配置为“显示隐藏的文件和文件夹”( “Show Hidden Files and Folders”)轻松取消隐藏文件夹。
以下是如何在Windows中免费创建一个相当安全的隐藏文件夹:
1. 转到开始(Start),运行(Run),然后输入CMD打开命令提示符窗口
2. 现在导航到要隐藏的文件夹的父文件夹。(parent folder)如果要隐藏文件,请导航到文件所在的文件夹。例如,我想在 C:Test 中隐藏一个文件,所以我会输入以下内容:
CD C:\Test
3. 现在输入以下命令,将单词filename替换为要隐藏的文件的名称。
attrib filename +s +h
就是这样!您的文件或文件夹(file or folder)现在完全隐藏了!它不会显示在我的电脑(My Computer)中,如果您通过命令提示符(command prompt)浏览它也不会显示,如果您选择“显示所有隐藏的文件和文件夹(Show all Hidden Files and Folders)”,它甚至不会显示。
如果要取消隐藏文件夹,只需按照相同的步骤操作,现在您将运行以下命令:
属性文件名 -s -h(attrib filename -s -h)
您可以将此命令用于文件和文件夹。在我们的示例中,如果我想隐藏 C:Test,我会转到 C: 上一级,然后输入:
attrib Test +s +h。
所以你会注意到我在上面说过这个过程是“相当安全的”,原因是你仍然可以以一种非常简单的方式取消隐藏隐藏的文件或文件夹。当我们在上述方法中更改文件/文件夹的属性时,实际上只是将其设置为隐藏的受保护系统文件(system file)。为了显示受保护的系统文件(system file),您所要做的就是转到文件夹选项(Folder Options),查看(View)选项卡并取消选中隐藏受保护的操作系统文件(Hide protected operating system files)框。
现在,如果您要使用隐藏文件或文件夹(file or folder)浏览该目录,您会看到它以灰色图标列出。如前所述,所有这些都是在Windows中隐藏数据的非常简单的方法,但它们可以在短期情况下或对儿童隐藏内容等时派上用场。人们取消隐藏系统保护文件的情况也很少见,而很多人确实在 Windows 中启用了“显示隐藏的文件和文件夹”选项。(Show Hidden Files and Folders)
所以现在您有四种不同的方式来隐藏Windows中的文件、文件夹或驱动器(folder or drive)!如果您有任何问题,请发表评论。享受!
Alternative Method to Hide Files and Folders in Windows
It seems likе people just can’t get еnough оf the how-to guidеs on creating hidden folders or locked folders in Windows. I’ve already written two guides on how to hide a folder, one by using a very simple built-in feature of Windows and another by using some Windows scripts. In the latter article, I also mentioned a free program that you can use called Folder Hide to completely remove a folder from visibility. Lastly, I’ve written about hiding an entire drive letter in Windows too.
But there’s yet ANOTHER way you can hide a files and folders, which is similar to the first post I mentioned above, but is a little bit more secure. It actually involves using the command prompt and a built-in Windows function to change certain attributes of a file or folder. Once the attributes have been changed, the files cannot be seen by the system.
The reason I like this method is because it does not involve any third-party software, which people may notice, and it’s not as simplistic as the first method I wrote about where you simply change the properties of the file or folder to hidden and anyone can easily un-hide the folder by configuring the Windows Explorer setting to “Show Hidden Files and Folders”.
Here’s how you can create a hidden folder in Windows for free that is fairly secure:
1. Go to Start, Run and then type in CMD to open the command prompt window
2. Now navigate to the parent folder of the folder you want to hide. If you want to hide a file, navigate to the folder where the file is located. For example, I want to hide a file in C:\Test, so I would type in the following:
CD C:\Test
3. Now type in the following command, replacing the word filename with the name of the file you want to hide.
attrib filename +s +h
And that’s it! Your file or folder is now completely hidden! It won’t show up in My Computer, it won’t show up if you browse via the command prompt and it won’t even show up if you select “Show all Hidden Files and Folders“.
If you want to un-hide the folder, you simply follow the same steps, expect now you’ll run this command:
attrib filename -s -h
You can use this command for both files and for folders. In our example, if I wanted to hide C:\Test, I would go one level above to C:\ and then type in:
attrib Test +s +h.
So you’ll notice that I had said this procedure is “fairly secure” above and the reason for that is you can still un-hide the hidden files or folders in a very simple way. When we change the attributes of the file/folder in the above method, we are actually just making it a hidden protected system file. In order to show protected system files, all you have to do is go to Folder Options, View tab and uncheck the Hide protected operating system files box.
Now if you were to browse into that directory with the hidden file or folder, you would see it listed there with a greyed out icon. As mentioned previously, all of these are very simplistic ways to hide data in Windows, but they can come in handy for short-term situations or for hiding content from kids, etc. It’s also rare for people to un-hide system protected files whereas a lot of people do enable the Show Hidden Files and Folders option in Windows.
So now you have four different ways to hide a file, folder or drive in Windows! If you have any questions, post a comment. Enjoy!