What is the maximum amount of characters or length for a Directory?

后端 未结 2 728
南笙
南笙 2020-12-17 09:06

What is the maximum amount of characters that a typical path can contain for a directory when using C#?

For example C:\\test\\ has 7 characters in lengt

2条回答
  •  情歌与酒
    2020-12-17 10:04

    You can have UNC paths longer than 260 if you prepend the path with a \\?. See the following Naming Files, Paths and Namespaces on MSDN.

提交回复
热议问题