找回密码
 加入
搜索
查看: 1984|回复: 7

[AU3基础] 关于_rundos请教

  [复制链接]
发表于 2010-9-18 02:59:04 | 显示全部楼层 |阅读模式
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\Google搜索.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk” /p everyone:n")
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\百度搜索.lnk” /p everyone:n")        
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\淘宝.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\滇之月原创文学网.lnk” /p everyone:n"
为什么执行不成功??
发表于 2010-9-18 03:12:23 | 显示全部楼层
我也是新手,我估计是路径有问题,文件夹名有空格,要加上引号,还有就是echo y|可以省略。。
发表于 2010-9-18 03:15:04 | 显示全部楼层
_rundos ("cacls “C:"Documents and Settings"\Administrator\桌面\Google搜索.lnk“ /p everyone:n")
_rundos ("cacls ”C:"Documents and Settings"\Administrator\桌面\Internet Explorer.lnk” /p everyone:n")
_rundos ("cacls “C:"Documents and Settings"\Administrator\桌面\Internet Explorer.lnk“ /p everyone:n")
_rundos ("cacls ”C:"Documents and Settings"\Administrator\桌面\百度搜索.lnk” /p everyone:n")        
_rundos ("cacls “C:"Documents and Settings"\Administrator\桌面\淘宝.lnk“ /p everyone:n")
_rundos ("cacls ”C:"Documents and Settings"\Administrator\桌面\滇之月原创文学网.lnk” /p everyone:n"
发表于 2010-9-18 10:08:34 | 显示全部楼层
为什么执行不成功??
lhy6456210 发表于 2010-9-18 02:59



    _rundos ('echo y|cacls “C:\Documents and Settings\Administrator\桌面\Google搜索.lnk“ /p everyone:n')
把"改为'
 楼主| 发表于 2010-9-18 10:35:59 | 显示全部楼层
上面这几个兄弟,刚刚测试了一下,都不行
发表于 2010-9-18 12:21:56 | 显示全部楼层
回复 1# lhy6456210

双引号,“ 和 " ,要使用 "
还有 _rundos 需要  #include <Process.au3>
文本包含空格必须使用双引号,文本包含双引号必须使用单引号

这是你的代码
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\Google搜索.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk” /p everyone:n")
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\百度搜索.lnk” /p everyone:n")        
_rundos ("echo y|cacls “C:\Documents and Settings\Administrator\桌面\淘宝.lnk“ /p everyone:n")
_rundos ("echo y|cacls ”C:\Documents and Settings\Administrator\桌面\滇之月原创文学网.lnk” /p everyone:n"
看看和上面的代码那里不一样?
#include <Process.au3>

_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\Google搜索.lnk" /p everyone:n')
_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk" /p everyone:n')
_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\Internet Explorer.lnk" /p everyone:n')
_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\百度搜索.lnk" /p everyone:n')        
_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\淘宝.lnk" /p everyone:n')
_rundos ('echo y|cacls "C:\Documents and Settings\Administrator\桌面\滇之月原创文学网.lnk" /p everyone:n')

评分

参与人数 1金钱 +10 收起 理由
t87564833 + 10 正解

查看全部评分

发表于 2010-9-18 12:33:07 | 显示全部楼层
楼上正解~楼主记得多花心事看帮助~
 楼主| 发表于 2010-9-18 14:20:57 | 显示全部楼层
非常感谢6楼,可以了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 20:44 , Processed in 0.079778 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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