[笔记] 踩到Windows的一个坑

Windows 上用从SVN checkout 内核代码时发现无法创建aux.c文件,在网上一搜发现 Windows 文件的文件名不能是aux.*

http://blog.sinzy.net/hjk41/entry/15366

https://social.technet.microsoft.com/Forums/windows/en-US/e22c021d-d188-4ff2-a4dd-b5d58d979c58/the-specified-device-name-is-invalid?forum=w7itprogeneral

We cannot create a folder named any of these keywords : CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

 

these keywords are used by Windows internally and are reserved Keywords. CON was used for CONSOLE, PRN for PRINTER, LPT’s for PARALLEL PORTS etc.


如果Samba服务器上有个叫aux.c的文件,在Window上看到的是这个鬼名字: AHY9U3~9.C

你可能感兴趣的:([笔记] 踩到Windows的一个坑)