love5173 发表于 2011-3-21 19:13:10

回复 15# netegg
仿佛我明白了什么,赶紧去试验

boyhong 发表于 2011-3-26 17:48:05

谢谢15楼,又学到一个知识点:#include <Constants.au3>

Local $foo = Run(@ComSpec & " /c ipconfig /all", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
Local $line
While 1
    $line = StdoutRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDOUT read:"&@error, $line)
Wend

While 1
    $line = StderrRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDERR read:"&@error, $line)
Wend

haijie1223 发表于 2011-3-28 15:47:04

为什么很多人都推荐 >>*.txt呢    不愿意看到运行程序时出现多余文件
页: 1 [2]
查看完整版本: run系统cmd命令得到的自定义变量如何在autoit中调用?