无法在 Win7 中创建 CON.csv 或 PRN.csv

Ole*_*leg 0 windows-7 csv rename

在 Win 7 Enterprise 64bit V6.1.7601 SP1 Build 7601 上,我无法创建具有特定名称的 *.csv 文件,即CON .csv 或PRN .csv。

这是我尝试重命名时遇到的错误:

在此处输入图片说明

另外,如果我尝试从 cmd.exe 重命名它:

在此处输入图片说明

我也试过小写,还是有问题。为什么我会收到这些错误?

Ber*_*ert 6

这些是 DOS 时代的保留文件名。还有几个。

下面是默认设备名称的列表。

   Name    Function
   ----    --------
   CON     Keyboard and display
   PRN     System list device, usually a parallel port
   AUX     Auxiliary device, usually a serial port
   CLOCK$  System real-time clock
   NUL     Bit-bucket device
   A:-Z:   Drive letters
   COM1    First serial communications port
   LPT1    First parallel printer port
   LPT2    Second parallel printer port
   LPT3    Third parallel printer port
   COM2    Second serial communications port
   COM3    Third serial communications port
   COM4    Fourth serial communications port
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请阅读这篇文章: 与 NUL 和 CON 等保留文件名有什么关系?


归档时间:

查看次数:

923 次

最近记录:

12 年 前