首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何(以及用于什么)在Windows和CMD中使用stream handles3至9?

如何(以及用于什么)在Windows和CMD中使用stream handles3至9?
EN

Stack Overflow用户
提问于 2018-07-31 06:21:09
回答 1查看 0关注 0票数 0

在CMD文档中https:https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490982(v=technet.10)是指从3到9的mentioned handles。

文件内容如下:

These handles are defined individually by the application and are specific to each tool.

它们是怎么用的?为什么?

它们都是默认打开的吗?或者我必须从脚本或程序中打开它们?我怎么用ReadFileWriteFile?

EN

回答 1

Stack Overflow用户

发布于 2018-07-31 15:43:05

正如你的链接所述:

代码语言:txt
复制
Handle    Numeric equivalent  Description
          of handle                      
========= =================== =======================================
STDIN         0               Keyboard input

STDOUT        1               Output to the Command Prompt window

STDERR        2               Error output to the Command Prompt window

UNDEFINED     3-9             These handles are defined individually
                              by the application and are specific to 
                              each tool.

批处理文件的一个实际用途是并行读取多个源文件:

以下参考资料:

http://www.dostips.com/forum/viewtopic.php?f=3&t=3126

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100005877

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档