gpt4 book ai didi

filesystems - 各种平台保留的文件名是什么?

转载 作者:行者123 更新时间:2023-12-03 11:48:17 25 4
gpt4 key购买 nike

我不是在问文件名的一般语法规则。我的意思是,陷阱突然冒出来咬你。例如,尝试在Windows上命名文件“COM ”?

最佳答案

来自:http://www.grouplogic.com/knowledge/index.cfm/fuseaction/view_Info/docID/111

The following characters are invalid as file or folder names on Windows using NTFS: / ? < > \ : * | " and any character you can type with the Ctrl key.

In addition to the above illegal characters the caret ^ is also not permitted under Windows Operating Systems using the FAT file system.

Under Windows using the FAT file system file and folder names may be up to 255 characters long.

Under Windows using the NTFS file system file and folder names may be up to 256 characters long.

Under Window the length of a full path under both systems is 260 characters.

In addition to these characters, the following conventions are also illegal:

  • Placing a space at the end of the name
  • Placing a period at the end of the name

The following file names are also reserved under Windows:

  • aux,
  • com1,
  • com2,
  • ...
  • com9,
  • lpt1,
  • lpt2,
  • ...
  • lpt9,
  • con,
  • nul,
  • prn

关于filesystems - 各种平台保留的文件名是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62849111/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com