MCPcopy Create free account
hub / github.com/WinMerge/winmerge / SaveRegistryToFile

Function SaveRegistryToFile

Src/Environment.cpp:224–230  ·  view source on GitHub ↗

* @brief Save registry keys to .reg file if existing .reg file */

Source from the content-addressed store, hash-verified

222 * @brief Save registry keys to .reg file if existing .reg file
223 */
224bool SaveRegistryToFile(const String& sRegFilePath, const String& sRegDir)
225{
226 if (paths::DoesPathExist(sRegFilePath) != paths::IS_EXISTING_FILE)
227 return false;
228 DeleteFile(sRegFilePath.c_str());
229 return launchProgram(_T("reg.exe export HKCU\\") + sRegDir + _T(" \"") + sRegFilePath + _T("\""), SW_HIDE);
230}
231
232}

Callers 2

ExitInstanceMethod · 0.85
TEST_FFunction · 0.85

Calls 2

DoesPathExistFunction · 0.85
launchProgramFunction · 0.85

Tested by 1

TEST_FFunction · 0.68