Reminder to self write a JavaScript NoDrives encoder/decoder on a web-page
Posted by jpluimers on 2024/10/01
A long time ago, I wrote about How to hide an entire drive from prying eyes on Windows 10 | Windows Central.
The easiest way is still to add/modify a NoDrives value in the Registry, but regrettably [WayBack] NT Drive Calculator – The ‘NoDrives’ Registry Key Value Calculator is down (it was a server-side solution, so the WayBack Machine link does display a page, but the calculator does not function).
My use case is that I have an existing NoDrives value that I want to update (as there have been one or more drive letters added/changed).
Via [Wayback/Archive] windows NoDrives calculator – Google Search I found [Wayback/Archive] Quick Tip: Is a Drive Hidden From Windows Explorer (Using NoDrives Registry Entry) | Žarko Gajić pointing to [Wayback/Archive] NoDrives – Windows CMD – SS64.com which has sort of a calculator but:
- it does not update from the drive-letter checkboxes if you accidentally modified the numeric
NoDrivesvalue - modifying the
NoDrivesvalue does not update the drive-letter checkboxes - only supports decimal
NoDrivesvalues (hexadecimal would be convenient since it is a bitmap)
For my reference:
- [Wayback/Archive] Number conversions
- the single driveletter to
NoDrivesvalue bitmap from my original post:
- A: 1,
- B: 2,
- C: 4,
- D: 8,
- E: 16,
- F: 32,
- G: 64,
- H: 128,
- I: 256,
- J: 512,
- K: 1024,
- L: 2048,
- M: 4096,
- N: 8192,
- O: 16384,
- P: 32768,
- Q: 65536,
- R: 131072,
- S: 262144,
- T: 524288,
- U: 1048576,
- V: 2097152,
- W: 4194304,
- X: 8388608,
- Y: 16777216,
- Z: 33554432,
- ALL: 67108863.
–jeroen






Leave a comment