![]() ![]() The code that creates item IDs for files reads the file attributes and records them for future reference. This is a case where Explorer faked itself out. Second, why does copying these artificially-super-hidden files cause the copy to become super-hidden for real? These files are not intended to be user-manipulated, so Explorer treats them as super-hidden so that the user won’t be tempted to rename or delete them and mess up the operation of the program that created them. In practice, hidden files that begin with a tilde are temporary files, usually to represent auto-saved contents, or as part of a write-rename-delete save operation. ![]() ![]() That’s why you have to disable “Hide protected operating system files” in order to see them. If there is a hidden file whose name begins with a tilde, then Explorer treats it as if the system and hidden attributes are both set, causing the file to be treated as super-hidden. ![]() This behavior dates back to Windows Vista. There are multiple things going on here, so let’s take them separately.įirst, why doesn’t ~test.txt appear on the desktop even though Explorer is configured to show hidden files? Observe that the copy has both the hidden and system attributes, even though the original did not have the system attribute.Ī customer discovered this behavior and wanted to know whether it was a bug or a feature (or a buggy feature). Use Ctrl C and Ctrl V to create a copy of the file. The ~test.txt file will now appear, and it will be dimmed because it is hidden. Observe that the ~test.txt file does not appear.īut wait, there’s more, if you’re running Windows 7 (but not Windows 8 or higher): Configure Explorer to show both hidden files and protected system files. This creates a hidden file called ~test.txt on the desktop. Open a command prompt and perform the following operations:Ĭ:\Users\Bob\Desktop> echo 12345 > ~test.txtĬ:\Users\Bob\Desktop> attrib h ~test.txt ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |