【发布时间】:2012-06-25 05:49:12
【问题描述】:
有没有办法在 adobe air 中与 cmd(使用本机进程)进行通信。 举个例子; 如何向 cmd 发送“ping www.google.com”并捕获 Air 中的返回值。
编辑
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files\Adobe\Adobe Flash Builder 4.5>ping www.google.com
Pinging www.l.google.com [209.85.175.103] with 32 bytes of data:
Reply from 209.85.175.103: bytes=32 time=1733ms TTL=50
Reply from 209.85.175.103: bytes=32 time=189ms TTL=50
Reply from 209.85.175.103: bytes=32 time=188ms TTL=50
Reply from 209.85.175.103: bytes=32 time=186ms TTL=50
Ping statistics for 209.85.175.103:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 186ms, Maximum = 1733ms, Average = 574ms
C:\Program Files\Adobe\Adobe Flash Builder 4.5>
我可以从 Air 应用程序在上面打印。我需要知道是否有一种特定的方法来获取最小值 = ?、最大值 = 的值?和平均值 = ? 计划炸开绳子。有没有别的办法。请帮帮我
提前致谢。
【问题讨论】:
-
我已经编辑了我的答案,你可以看看
标签: actionscript-3 apache-flex air ping