大家帮忙看看哪儿不正确,为啥运行不了!谢谢了
下面每一条运行时都提示错误,请高人帮看一看,是哪儿不正确?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") 建议仔细看看帮助文档,目测多处语法错误...RegWrite
创建注册表的键或值.
RegWrite ( "键名" [,"值名" [, "类型" [, 值]]] ) 目测是引号冲突了。
第一句目测大概应该类似REGWRITE("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas\Command", "", "REG_SZ", "cmd.exe /c takeown /f \'%1\' && icacls \'%1\' /grant administrators:F")
其他的搜索论坛。 太感谢了,修改引号后的确能运行了,谢谢了。 {:face (411):} {:face (411):}
页:
[1]