隐藏文件的几种方法(让别人找不到)

上一篇 / 下一篇  2010-06-01 16:07:52 / 个人分类:转帖

比如要隐藏C盘下test文件夹下的一个文件:1.txt

方法一:
  1. 开始-运行-cmd.
  2. Cd C:\test
  3. 运行:attrib 1.txt +s +h
  4. 这样文件别人就找不到了
  5. 运行:attrib 1.txt -s -h
  6. 就又能看到这个文件了



原文:

Windows

Method 1 (the easy one)

    1. Click “Start”, “Run,” and then typecmd. When the command prompt opens type “CD C:\Test” (replace “Test” with the name of the folder you want to hide.)

    2. Now type “attrib file +s +h” and replace “file” with the name of the actual file name you would like to hide.

    3. Now, go back to C:\Test and look for your file or folder, it’s not there! You cannot find it through simply browsing around, through the command prompt, or even if you click “Show Hidden Files and Folders”.

    4. To find the folder and it’s contents again simply go back to the command prompt, type “CD C:\Test” (of course, again replacing “Test” with the name of the folder,) and then type “attrib filename -s -h”. You should now be able to find your file again!

Method 2 (this is where it starts to get slightly more difficult)

This method, unlike the previous one, hidesan entire driveinstead of individual files or folders:

(Before you ever use the registry IHIGHLY RECOMMENDbacking up your registry with a tool similar toRegistry ToolorCCleaner. You may as well use a manual method similar tothis.)

    1. Go to “Start,” “Run,” and typeregedit.

    2. When the registry editor loads, navigate to: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\
    Policies\Explorer

    3. Right click on “Explorer” and select “New” and “DWORD Value.”

    4. Name the valueNoDrivesand select “Decimal” as the base.

    5. In the value type the number that corresponds with the drive below:

    (E.g. If you would like to hide drive E, type 16. You may also hide multiple drives by adding the two numbers. E.g. If you would like to hide drives E and G, 16+64=80.)

    6. Now, after you restart your computer, you should not be able to see the drive.

Method 3

    1. Create a folder in a drive for easy access, e.g. C:. (Name it something related to the Control Panel, e.g. Users.)

    2. Create a new file in Notepad and copy and paste the following into it:

    ren Users Users.{21EC2020-3AEA-1069-A2DD-08002B30309D}

    3. Replace “Users” with the name of the folder you created and save the file asloc.bat.

    (You should now be able to see your folder and theloc.batfile, with theloc.batin the same directory as the folderNot in it.)

    4. Now, right-click and create another text file. Copy and Paste the following into it:

    ren Users.{21EC2020-3AEA-1069-A2DD-08002B30309D} Users
    (Make sure to replace the word “Users” with the name of your folder.)

    5. Save it askey.bat.

    6. Now you should see theloc.batand thekey.batfiles in the same directory as the folder you created.

    7. Now, all you need to do is double-click on theloc.batfile and the folder should have an icon that looks like the control panel. If you click on the folder it should redirect you to the Control Panel and thus you have locked the folder.

    8. Of course, to unlock it, simply double-click on thekey.batfile and the folder should turn back into the folder you first created.

    lock files in windows

Method 4

This final method allows users to hide files in a JPEG image:

hide files in JPEG

    1. Create a folder in C:\, e.g. C:\Folder1.

    2. Put all the files you want to hide in there, as well as a JPEG image that you would like to hide the files in.

    3. Select all of the files you want to hide, and create a ZIP or RAR file with them using a program likeWinRAR,WinZip,7Zip, etc.

    4. Now you should have your archive next to your files that you want to hide, even though they are in the archived file already, with the JPEG image you would like to hide all of this in.

    5. Go to “Start,” “Run,” and type:cmd.

    6. Now type:cd \, then type:cd Folder1. (Of course, replaceFolder1with the name of your folder.)

    7. Type the following:copy /b myimage.JPG + archivedthing.rar myimage.jpg

    (Note: Replace the name “myimage” with the name of your image, and replace “archivedthing” with the name of your compressed file.)

    8. You should receive a response similar to the following: “1 file(s) copied.”

    9. To find the files in your image, all you need to do is right-click on the image and select “Open With…” and select “WinRAR” or the name of the program you used to archive the original files.

    Windows Hide folders

    Hide files in Windows

Mac

Now, for Mac users it is different. The following method can be used for Unix-like systems, thus Macs.

Method 5

1. Create a folder in your “Home” directory through your directory by typing the following:mkdir .myfoldernameThe folder has to have a dot before it. E.g..myfoldername.

2. Go to your home directory and click “Go” then “Go to Folder.” Type the following:~/.myfoldername.

3. You should now be able to put stuff in your hidden folder.


TAG:

 

评分:0

我来说两句

Open Toolbar