小凯 发表于 2008-11-21 21:22:08

RUNDOS变量

本帖最后由 小凯 于 2010-5-21 17:55 编辑

#include <GUIConstants.au3>
#include <Process.au3>
$OK = GUICtrlCreateButton ("按钮", 152, 16, 81, 33, 0)
$tx = GUICtrlCreateInput("", 24, 24, 121, 21)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
    Case $msg = $ok
      MsgBox(0, "提示", GUICtrlRead($tx))
          $rp = _RunDOS("ping $tx -n 1 -w 2")

这里          $rp = _RunDOS("ping $tx -n 1 -w 2")
RunDOS PING $tx 变量存在吗? 试验了好多次都不成功~!帮助我也找了没有说明啊~!帮忙解释下!

liongodmien 发表于 2008-11-22 13:51:18

楼主虽然说了有找帮助,但的确是可以确定没怎么认真看帮助!帮助中的常见问题9有说明!

小凯 发表于 2008-11-23 05:14:07

$rp = _RunDOS("ping " &GUICtrlRead($sh)&" -n 1 -w 2
这样貌似也不行。
我的帮助是英文的!中文的不见了

webhelp 发表于 2008-11-29 02:23:50

$rp = _RunDOS('ping '& $tx &' -n 1 -w 2')
页: [1]
查看完整版本: RUNDOS变量