找回密码
 加入
搜索
查看: 3020|回复: 5

[AU3基础] 大家帮忙看看哪儿不正确,为啥运行不了!谢谢了

  [复制链接]
发表于 2013-12-12 14:28:51 | 显示全部楼层 |阅读模式
下面每一条运行时都提示错误,请高人帮看一看,是哪儿不正确?
REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas\Command", "", "REG_SZ", "cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F")


REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\TakeAuthority\Command", "REG_SZ", "cmd.exe /c takeown /f", "%1", "&& icacls", "%1", "/grant administrators:F")


REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\runas\Command", "", "REG_SZ", "cmd.exe /c takeown /f", "%1", "/r /d y && icacls", "%1", "/grant administrators:F /t")


REGWRITE("HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\open\command", "", "REG_SZ", "@ProgramFilesDir\Internet Explorer\iexplore.exe"," %1")


REGWRITE("HKEY_CLASSES_ROOT\Spiralmonkey.DreamAquarium.1\DefaultIcon", "", "REG_SZ", "\Windows\System32\ErrorsAndUpdates.exe","0")


REGWRITE("HKEY_CLASSES_ROOT\Spiralmonkey.DreamAquarium.1\shell\Open\command", "", "REG_SZ", "\Windows\System32\ErrorsAndUpdates.exe" "%1")


REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Spiralmonkey.DreamAquarium.1\DefaultIcon", "", "REG_SZ", "\Windows\System32\ErrorsAndUpdates.exe","0")



REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Spiralmonkey.DreamAquarium.1\shell\Open\command", "", "REG_SZ", "Windows\System32\ErrorsAndUpdates.exe", "%1")
发表于 2013-12-12 15:51:17 | 显示全部楼层
建议仔细看看帮助文档,目测多处语法错误...
RegWrite
创建注册表的键或值.
RegWrite ( "键名" [,"值名" [, "类型" [, 值]]] ) 
发表于 2013-12-12 19:46:18 | 显示全部楼层
目测是引号冲突了。
第一句目测大概应该类似
REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas\Command", "", "REG_SZ", "cmd.exe /c takeown /f \'%1\' && icacls \'%1\' /grant administrators:F")
其他的搜索论坛。
 楼主| 发表于 2013-12-14 10:50:18 | 显示全部楼层
太感谢了,修改引号后的确能运行了,谢谢了。
发表于 2013-12-26 21:07:04 | 显示全部楼层
发表于 2013-12-26 21:07:06 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-16 19:35 , Processed in 0.093844 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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