欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基 礎(chǔ) 函 數(shù) 參 考


StderrRead

讀取運(yùn)行的子進(jìn)程 STDERR 流.

StderrRead ( 子進(jìn)程 ID [, 取數(shù) = false [, 二進(jìn)制 = false]] )

參 數(shù)

子進(jìn)程 ID 子進(jìn)程 ID, 由先前調(diào)用的 Run 返回.
取數(shù) [可選參數(shù)] 如為 true, 函數(shù)不刪除從流中讀取字符.
二進(jìn)制 [可選參數(shù)] 如為 true, 函數(shù)讀取二進(jìn)制數(shù)據(jù), 而非文本(默認(rèn)為文本).

返 回 值

成功: 返回讀取的數(shù)據(jù). @extended 包含讀取的字節(jié)數(shù).
失敗: @error 設(shè)置為非 0 值, 到達(dá) EOF(文件尾), STDERR 不再為進(jìn)程或其他錯(cuò)誤重定向.

備 注

StderrRead 從控制臺(tái)讀取子進(jìn)程的標(biāo)準(zhǔn)輸出流, 通常用于控制臺(tái)應(yīng)用程序?qū)懭氲狡聊?
對(duì)子進(jìn)程調(diào)用 Run 期間, 要讀取標(biāo)準(zhǔn) I/O 值, 參數(shù)必須包括 $STDERR_CHILD (4), 函數(shù)才能正常工作 (見(jiàn) the Run 函數(shù)).
StderrRead 不被阻塞時(shí), 將立刻返回. 要獲取所有數(shù)據(jù), 它必須在循環(huán)中調(diào)用.
在流上"取數(shù)"不會(huì)把數(shù)據(jù)從緩沖器刪除, 且能返回正常可用的數(shù)據(jù).
默認(rèn)數(shù)據(jù)以文本格式返回. 如使用"二進(jìn)制"選項(xiàng), 數(shù)據(jù)將以二進(jìn)制格式返回.

相 關(guān) 函 數(shù)

StdoutRead, StdinWrite, StdioClose, Run, RunAs

函 數(shù) 示 例


; Demonstrates StdoutRead()
#include <Constants.au3>

Local $foo = Run(@ComSpec & " /c dir foo.bar", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
Local $line
While 1
    $line = StdoutRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDOUT 讀取:", $line)
WEnd

While 1
    $line = StderrRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDERR 讀取:", $line)
WEnd

MsgBox(0, "調(diào)試", "準(zhǔn)備退出...")

provider with jb51.net (unicode)