I want to edit .reg file, before importing it by using batch script. Content of .reg file given below.
[HKEY_LOCAL_MACHINE\SOFTWARE\SomeSoftware] Resource=RESOURCE_FOLDER/images
There are many keys like this in the file. Here I want to replace RESOURCE_FOLDER with any directory path (like C:\Program Files\SomeSoftware\resource), which depends on user input. For importing .reg file following command can be used
regedit.exe /s path of .reg file
Can we provide arguments to this command which takes RESOURCE_FOLDER value ? or any other way to do this ?