如何使用批处理文件在注册表中添加程序?

如何使用批处理文件在注册表中添加程序?

我想将一个.exe程序添加到此注册表路径:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell

我试过这个代码

@echo 关闭

reg 添加“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”/v Shell /t REG_SZ /d notepad.exe /f

但不起作用...请帮帮我。

相关内容