Is anybody interested in a long list of obscure NTFS tricks? Yes? Good, because this long list provides just that. As an example, ever wanted to create folders with just periods, but you realized you couldn’t because every NTFS folder has the special “.” and “..” folders to refer to itself and its parent folder, respectively? Well, here’s your chance to learn how.
Probably not the most useful tricks, but fun nonetheless.
A lot of the issues in this article come from the way Win32 truncates trailing periods and spaces from names. The reason you can’t make “….” is because once all the periods are truncated, there’s nothing to make. But if you make ….:foo, and truncate all the periods, there is something to make. Having created it, it will confuse every Win32 app, since they’ll go to open “….”, which will all be truncated, and the apps end up confused. CMD is one of those apps.
What this guy needs is tools that use the \\?\ prefix or NT API to suppress some of this behavior to allow for raw create and delete semantics. Once that is done the behavior of Windows on some of these points gets a lot more sensible. One option (shameless plug) would be to use Yori, which is my take on CMD, but uses \\?\ internally so “mkdir … & rmdir …” will operate as regular files. See http://www.malsmith.net/yori/ .
Having done it, it still won’t work well with Win32 applications though.
I heard none of the original NTFS developers work in MS anymore, so everyone is afraid to even touch the code not to make any instability xD I wonder when MS will support BTRFS (or at least ext4) natively.
Edited 2018-06-14 03:07 UTC