Today I encountered a problem when using batch commands to modify the registry and had some questions! Here is the code I wrote:
@echo off
echo Windows Registry Editor Version 5.00>>ok.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]>>ok.reg
echo "key"="C:\\WINDOWS\\key.exe">>ok.reg
regedit /s ok.reg
del ok.reg
I don't know if there are any mistakes! This is the code in the REG file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"key"="C:\\WINDOWS\\key.exe"
I don't understand that I can import it when I write other registry entries. But there are a few that I can't import no matter how I edit them. I have modified them many times repeatedly. It should be fine. I really can't figure it out. Is the command used incorrectly? Please ask an expert for guidance. I'm almost going crazy~~~ If possible, add my QQ: 50594677 and talk to me in detail!
@echo off
echo Windows Registry Editor Version 5.00>>ok.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]>>ok.reg
echo "key"="C:\\WINDOWS\\key.exe">>ok.reg
regedit /s ok.reg
del ok.reg
I don't know if there are any mistakes! This is the code in the REG file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"key"="C:\\WINDOWS\\key.exe"
I don't understand that I can import it when I write other registry entries. But there are a few that I can't import no matter how I edit them. I have modified them many times repeatedly. It should be fine. I really can't figure it out. Is the command used incorrectly? Please ask an expert for guidance. I'm almost going crazy~~~ If possible, add my QQ: 50594677 and talk to me in detail!

