NTFS中最大文件名长度(Windows XP和Windows Vista)? [英] Maximum filename length in NTFS (Windows XP and Windows Vista)?

查看:211
本文介绍了NTFS中最大文件名长度(Windows XP和Windows Vista)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个数据库表,该表将保存上载文件的文件名. Windows XP或Vista使用的NTFS文件名的最大长度是多少?

I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?

推荐答案

文件名的各个部分(即路径中的每个子目录以及最终文件名)均限制为255个字符,并且总路径长度限制为大约32,000个字符.

Individual components of a filename (i.e. each subdirectory along the path, and the final filename) are limited to 255 characters, and the total path length is limited to approximately 32,000 characters.

但是,在Windows上,您不能超过MAX_PATH值(文件为259个字符,文件夹为248个字符).请参阅

However, on Windows, you can't exceed MAX_PATH value (259 characters for files, 248 for folders). See http://msdn.microsoft.com/en-us/library/aa365247.aspx for full details.

这篇关于NTFS中最大文件名长度(Windows XP和Windows Vista)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆