There are many ways to hide files, but these methods are either not complete or too complex. This article provides a way to take advantage of a virtual disk, with a simple batch file that can quickly and securely hide files that you don't want to be seen by others.
1, open Notepad, enter the following content:
@ECHO off
MD d:/recycled/udrives. {25336920-03f9-11cf-8fd0-00aa00686f13}>nul
IF EXIST M:/nul GOTO DELETE
SUBST m:d:/recycled/udrives. {25336920-03F9-11CF-8FD0-00AA00686F13}
START m:/
GOTO End
:D elete
SUBST/D M:
: End
2. Save the above file as a batch file in ". bat" format to any location, for example, save as Hide.bat
3, double click "Hide.bat", in My computer will appear a virtual disk called M disk, will not want to let others see the file moved to M disk, complete the move and then double-click "Hide.bat" to uninstall the virtual disk. To view or work with hidden files, double-click the "Hide.bat" file again.
Hidden principle:
The files saved in the M-disk are actually stored in the D-disk Recycle Bin "d:/recycled/udrives." {25336920-03F9-11CF-8FD0-00AA00686F13} folder. However, even if you set the folder view option to display all the files, the contents of the folder are not visible, and of course you cannot delete the files saved under that folder by emptying the Recycle Bin.