0

我需要将 1,000 多个文件下载到位于存储卡上的 windows mobile 5 目录中。如果我通过桌面将文件复制到存储卡上,则没有问题。但是,当我尝试从手持设备下载文件时,我收到磁盘已满错误,即使由于 1,000 个文件的限制还有足够的空间。

有没有人遇到这个并找到解决方法?我将尝试压缩所有文件,然后在设备上解压缩,但不确定这是否可行。

4

4 回答 4

2

将其拆分为多个目录?

于 2009-12-24T20:35:24.250 回答
1

There is a 999 file limit in Windows mobile 6.X as well. However this only applies if you use long file names. If you stick with the 8.3 file name format (8 char name with 3 char extension) then you can have many thousands of files in the same directory without issue.

I bumped into this problem a few years back and my app routinely writes 3000 to 4000 file per directory with 8.3 file format names.

I have never seen the 999 files per directory issue documented by Microsoft or anybody else.

于 2013-01-30T22:35:20.277 回答
1

创建更多目录并在每个目录中放置少于 1000 个文件。

于 2009-12-24T20:35:52.753 回答
1

这是基于 Windows CE 的系统的限制:

用于 Pocket PC 的 Windows Mobile 2003、用于 Smartphone 的 Windows Mobile 2003、Windows CE 平台 注意:当文件共享相同的短文件名(即八个字符的名称、句点 ( .) 和 3 个字符的扩展名)。解决方法是确保短文件名不同。例如,如果文件从 Longfilename0001.txt 到 Longfilename1000.txt 命名,请将数字放在文件名的开头而不是结尾。

https://msdn.microsoft.com/ru-ru/library/system.io.filemode(v=vs.85).aspx

因此,如果您不想拆分到不同的文件夹,则应以数字开头的文件名以避免此限制。这就是 Tary 在 8.3 文件名上取得成功的原因,它们足够短。

于 2016-03-08T11:57:39.677 回答