Running .reg file from .bat file only executes 1 reg key entry

Here’s my .reg file –

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodePoliciesGoogleChromeExtensionInstallForcelist] 
"1"="aaaaaaaaaabbbbbbbbbbcccc;https://clients2.google.com/service/update2/crx" 

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeGoogleChromeExtensionsaaaaaaaaaabbbbbbbbbbcccc] 
"Path"="http://xxx.xxx.com/V/C/app.crx" 
"update_url"="https://clients2.google.com/service/update2/crx"
"Version"="1.0.1505.1400" 

In my .bat file I have the following:

regedit.exe /s "C:TEDCIsrcSCECCECbinReleaseForceInstall.reg"

When I run the same command in cmd both keys are added to the registry.
When the .bat file executes… only the 2nd key is added
Is there something I’m missing about executing reg files from batch files?


Source: windows

Leave a Reply