今天一网友和我聊天的时候,说到有些文件名无法在Windows中建立,我就查了查,没想到真是如此,挺有趣的。再看了看名字,这些名字都是系统的名字,所以不许随便乱取吧,怕出问题。
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9
看看解释:
You must avoid using these names as a file name suffix or file name body, so you have to avoid names such as aux.c, file.aux or NUL.txt.
大家也去试试看吧,呵呵。
有点儿意思啊,看来文件名也有保留关键字,呵呵……
呵呵,的确~