zyw_zjk 发表于 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 ( "键名" [,"值名" [, "类型" [, 值]]] )

lpxx 发表于 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")
其他的搜索论坛。

zyw_zjk 发表于 2013-12-14 10:50:18

太感谢了,修改引号后的确能运行了,谢谢了。

pighk 发表于 2013-12-26 21:07:04

{:face (411):}

pighk 发表于 2013-12-26 21:07:06

{:face (411):}
页: [1]
查看完整版本: 大家帮忙看看哪儿不正确,为啥运行不了!谢谢了