如何在Windows 7和Windows 8中同时打开1000个以上的文件 [英] How to open more than 1000 files at the same time in Windows 7 and Windows 8

查看:92
本文介绍了如何在Windows 7和Windows 8中同时打开1000个以上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows 7和Windows 8中同时打开1000个以上的文件?
请让我知道API或实现该API的过程.

问候,
Satendra

How can one open more than 1000 files simultaneously in Windows 7 and Windows 8?
Please let me know the API or the process by which one can achieve this.

Regards,
Satendra

推荐答案

C运行时的默认限制为512个打开文件句柄.考虑到.NET的某些部分是使用CRT编写的,因此我假设在这里也有相同的限制.如果要增加此限制,可能必须P/调用_setmaxstdio.
The C runtime has a default limit of 512 open file handles. Considering that parts of .NET are written using the CRT, I assume the same limit holds there too. You may have to P/Invoke _setmaxstdio if you want to increase this limit.


这篇关于如何在Windows 7和Windows 8中同时打开1000个以上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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