Kāpēc nav iespējams nosaukt mapi "._." Sistēmā Windows 7?

Satura rādītājs:

Kāpēc nav iespējams nosaukt mapi "._." Sistēmā Windows 7?
Kāpēc nav iespējams nosaukt mapi "._." Sistēmā Windows 7?

Video: Kāpēc nav iespējams nosaukt mapi "._." Sistēmā Windows 7?

Video: Kāpēc nav iespējams nosaukt mapi
Video: Are PCIe SSDs Worth It? 🤔 - HDD VS SATA VS NVMe! - YouTube 2024, Aprīlis
Anonim
Dažreiz intereses dēļ vai pamatojoties uz faktisku vēlmi kaut ko darīt citādi, varat mēģināt izmantot dažus neparastus nosaukumus mapēm savā Windows sistēmā - ar jauktiem rezultātiem. Paturot to prātā, šodienas SuperUser Q & A ziņai ir atbilde uz ziņkārīgo lasītāja jautājumu.
Dažreiz intereses dēļ vai pamatojoties uz faktisku vēlmi kaut ko darīt citādi, varat mēģināt izmantot dažus neparastus nosaukumus mapēm savā Windows sistēmā - ar jauktiem rezultātiem. Paturot to prātā, šodienas SuperUser Q & A ziņai ir atbilde uz ziņkārīgo lasītāja jautājumu.

Šodienas jautājumu un atbilžu sesija mums priecājas par SuperUser - Stack Exchange dalību, kas ir kopienas vadīta Q & A tīmekļa vietņu grupa.

Ziņu loga screenshot pieklājīgi no Ben N (SuperUser).

Jautājums

SuperUser lasītājs EdwardBlack vēlas uzzināt, kāpēc nav iespējams nosaukt mapi ._. savā Windows 7 sistēmā:

I just noticed that it is not possible to name a folder

._.

uz manu Windows 7 sistēmu. Tas tiek pārdēvēts par

._

tā vietā. Dažreiz tas pazūd tikai pēc nosaukuma, bet pēc tam atkal parādās pēc skata atsvaidzināšanas. Šķiet, ka Windows faila nosaukuma beigās ir problēmas ar punktiem. Kāpēc ir šis?

Kāpēc nav iespējams nosaukt mapi ._. sistēmā Windows 7?

Atbilde

SuperUser atbalstītājs Ben N ir atbilde mums:

Windows normally requires files to have either no extension or an extension that is at least one character long. It does not like zero length extensions (i.e. file names that end with a period). Folders can have extensions too, therefore, Windows does not let their names end with a period.

Source: From the article linked to by DavidPostill:

Use a period to separate the base file name from the extension in the name of a directory or file.

If you try to end a file or directory name with a period, Windows just assumes that you did not want an extension and thus removes it (even if you create it with the md command in a command prompt window).

Danger Zone

If you really want a folder name to end with period, you will need to use the magic raw name override sequence of ?. In a command prompt window, md \?C:path ocontainer._. will indeed create a folder named ._., but lots of programs will have problems with it, even Windows Explorer:

Image
Image

Such a directory can only be removed with the rd command followed by its ? name, or renamed with its short (8.3, dir /x) name.

Vai kaut ko pievienot paskaidrojumam? Skatieties komentāros. Vēlaties lasīt citas atbildes no citiem tehnoloģiju savvy Stack Exchange lietotājiem? Šeit skatiet pilnu diskusiju pavedienu.

Ieteicams: