Kodėl negalima pavadinti aplanko "._." "Windows 7"?

Turinys:

Kodėl negalima pavadinti aplanko "._." "Windows 7"?
Kodėl negalima pavadinti aplanko "._." "Windows 7"?

Video: Kodėl negalima pavadinti aplanko "._." "Windows 7"?

Video: Kodėl negalima pavadinti aplanko
Video: Are PCIe SSDs Worth It? 🤔 - HDD VS SATA VS NVMe! - YouTube 2024, Balandis
Anonim
Kartais dėl smalsumo ar dėl faktinio noro ką nors kito padaryti, galite pabandyti naudoti kai kuriuos neįprastus pavadinimus "Windows" aplankuose - su mišriomis rezultatais. Atsižvelgdami į tai, šiandieninis SuperUser Q & A pranešimas turi atsakymą į įdomų skaitytojo klausimą.
Kartais dėl smalsumo ar dėl faktinio noro ką nors kito padaryti, galite pabandyti naudoti kai kuriuos neįprastus pavadinimus "Windows" aplankuose - su mišriomis rezultatais. Atsižvelgdami į tai, šiandieninis SuperUser Q & A pranešimas turi atsakymą į įdomų skaitytojo klausimą.

Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.

Pranešimo lango screenshot mandagiai Ben N (SuperUser).

Klausimas

SuperUser skaitytojas EdwardBlack nori sužinoti, kodėl neįmanoma įvardyti aplanko ._. savo "Windows 7" sistemoje:

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

._.

mano "Windows 7" sistemoje. Jis tampa pervardytas į

._

vietoj to. Kartais ji išnyksta iškart po jo pavadinimo, bet po to atsinaujina po atnaujinimo. Atrodo, kad failo pavadinimo pabaigoje "Windows" turi problemų su taškais. Kodėl tai?

Kodėl neįmanoma įvardyti aplanko ._. "Windows 7"?

Atsakymas

"SuperUser" autorius Ben N atsako 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.

Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.

Rekomenduojamas: