http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx je napisao(la):
Last point: About spaces and dots in filenames and directories. The limits are in the windows shell -- not in Windows or NT. Using 'bash', you can create files with spaces (or dots), both, at the beginning and end of a filename. You can then list and open those files in explorer, and you can 'list' them in the shell (cmd.exe), but you won't necessarily be able to open them from the shell (especially trailing spaces and dots). The shell strips them out. If you want such things, use another shell, but WARNING -- if you put spaces after your filename, it will be hard to figure out how many there are. To do it, you'd have to dump your directory listing to a file and do a hexdump of the file to see how many space characters there actually are. Not a major problem, but still a bit of a pain.