在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.
它们是怎么用的?为什么?
它们都是默认打开的吗?或者我必须从脚本或程序中打开它们?我怎么用ReadFile
和WriteFile
?
发布于 2018-07-31 15:43:05
正如你的链接所述:
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.
批处理文件的一个实际用途是并行读取多个源文件:
以下参考资料:
https://stackoverflow.com/questions/-100005877
复制相似问题