If a disk drive stores important data and you do not want to view the content of the drive, you can use this method to disable viewing the content of the drive. Create a new two-byte (REG_DWORD) value item HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ current version \ Policies \ Explorer \ noviewondrive. This value ranges from 0th to 25th characters, representing drive a to drive Z, respectively. For example, if you want to disable disk drive a and drive B, and drive D, you can change "noviewondrive" to "0000000b" (values of 0th, 1, and 3 bits are 1 ).
After modification, restart the desktop to make the change take effect. Then, go to "my computer" and double-click drive D. A message box will pop up to tell the user that this operation cannot be performed. But the applicationProgramYou can still access the prohibited drive. The disabled drive icon is not deleted and still appears in my computer and resource manager.