找回密码
 加入
搜索
查看: 5445|回复: 9

[AU3基础] 表达式总是错误,请求帮助!!

  [复制链接]
发表于 2015-2-27 17:35:39 | 显示全部楼层 |阅读模式
#include<Constants.au3>

        Local $p = Run(@ComSpec& " /c ipconfig |find "IPv4" |find "172.130" ","" , @SW_HIDE , 15)
        Local $line
        ProcessWaitClose($p)
        While 1
        $line = StdoutRead($p)
        If        @error Then ExitLoop
        MsgBox(0, "IP地址:", $line)
        WEnd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2015-2-27 19:02:07 | 显示全部楼层
#include<Constants.au3>

Local $p = Run(@ComSpec & ' /c ipconfig |find "IPv4" |find "172.130" ', "", @SW_HIDE, 15)
Local $line
ProcessWaitClose($p)
While 1
        $line = StdoutRead($p)
        If @error Then ExitLoop
        MsgBox(0, "IP地址:", $line)
WEnd
发表于 2015-2-27 19:02:31 | 显示全部楼层
注意引号的使用
发表于 2015-2-27 20:46:44 | 显示全部楼层
帮你顶顶
发表于 2015-2-28 15:53:36 | 显示全部楼层
引号地方,当时我我用的时候,也晕了。
发表于 2015-3-28 21:49:03 | 显示全部楼层
这样也可以
MsgBox(8096 , "IPV4 Address1 :" ,@IPAddress1)
发表于 2015-3-28 21:59:43 | 显示全部楼层
回复 6# Huiseyu

这有什么用,和楼主要实现的根本不是一回事
发表于 2015-3-28 22:42:23 | 显示全部楼层
回复 7# netegg


    没看请题意,以为只用dos显示IP呢。
发表于 2015-3-31 18:39:16 | 显示全部楼层
帮助文件里面有正则教程。
发表于 2015-3-31 23:04:26 | 显示全部楼层
如此情景,值得借鉴
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-26 15:29 , Processed in 0.086355 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表