Tänane küsimuste ja vastuste seanss jõuab meile viisakalt SuperUserini - Stack Exchange'i ja kogukonnapõhiste Q & A veebisaitide rühmitusse.
Sõnumi akna ekraanipilti Ben N (SuperUser) viisakalt.
Küsimus
SuperUseri lugeja EdwardBlack soovib teada, miks kausta ei ole võimalik nimetada ._. tema Windows 7 süsteemis:
I just noticed that it is not possible to name a folder
._.
minu Windows 7 süsteemis. See saab ümber nimetada
._
selle asemel. Mõnikord kaob see kohe pärast selle nimetamist, kuid seejärel ilmub uuesti pärast vaate värskendamist. Ilmub, et Windowsil on failinime lõpus punktidega probleeme. Miks on see?
Miks ei ole võimalik kausta nimetada ._. Windows 7-s
Vastus
SuperUseri panustaja Ben N on meie jaoks vastus:
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:
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.
Kas teil on seletamiseks midagi lisada? Helistage kommentaarides. Kas soovite lugeda rohkem vastuseid teistelt tech-savvy Stack Exchange'i kasutajatelt? Tutvu täieliku arutelu teemaga siit.