Can I get an exit code from running regedit /s?
问题 I have a script that changes a registry value, before doing that, it makes a backup of the registry key using regedit /e to create a .reg file. If the script is run a second time and the .reg backup file exists, I am asking the user if they want to add their backup back into the registry. Because I don't want to confuse users who will have no real idea of whats happening with extra prompts they might not understand, I am using the following code to do this with out asking the user if they