找回密码
 加入
搜索
查看: 2719|回复: 3

[系统综合] 请教运行DOS命令[已解决]

[复制链接]
发表于 2010-4-2 17:53:03 | 显示全部楼层 |阅读模式
本帖最后由 chenxianpeng 于 2010-4-3 14:32 编辑

$proes = ProcessExists($pid)
RunWait(@ComSpec & " /c " & 'fu -ph' & '' & $proes , "", @SW_HIDE)

fu是隐藏进程的一个第三方软件

可以这么做不起作用 应该是错了

RunWait(@ComSpec & " /c " & 'fu -ph 1121' , "", @SW_HIDE)

我这么做就没任何问题
发表于 2010-4-2 18:21:39 | 显示全部楼层
$proes = ProcessExists($pid)
$cmd = "Dir /s"& $proes  ;先写好
RunWait(@ComSpec & " /c " & $cmd,"",@SW_HIDE)
发表于 2010-4-2 23:47:20 | 显示全部楼层
RunWait(@ComSpec & " /c " & 'fu -ph' & ' ' & $proes , "", @SW_HIDE)

'fu -ph' & ' ' & $proes 中间的& '' & 应该要加空格吧。

评分

参与人数 1金钱 +15 收起 理由
afan + 15

查看全部评分

发表于 2010-4-3 00:22:59 | 显示全部楼层
$proes = ProcessExists($pid)
If $proes Then RunWait(@ComSpec & ' /c fu -ph ' & $proes, '', 0)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-2 14:24 , Processed in 0.089815 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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