You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a batch file to backup the registry settings - thought someone else might find it useful:
create a file called winmerge-registry-backup.bat
edit and add the following code:
@echo off
REM This batch file will back up a specific location in the Windows registry.
REM Specify location:
set "registryKey=HKEY_USERS\S-1-5-21-413796706-13712985-2574880054-1000\Software\Thingamahoochie"
REM Get the current date and time in yyyymmdd-hhmmss format using PowerShell.
for /f %%I in ('powershell -NoProfile -Command "Get-Date -Format 'yyyyMMdd-HHmmss'"') do set "timestamp=%%I"
REM Define the location and filename for the backup file with timestamp.
set "backupFile=D:\Downloads\Winmerge-registry-%timestamp%.reg"
echo Backing up registry key: "%registryKey%" to "%backupFile%"
REM Use the reg export command to backup the registry key.
reg export "%registryKey%" "%backupFile%"
if errorlevel 1 (
echo Error: Failed to backup the registry key.
echo Please ensure you have the necessary permissions.
) else (
echo Registry key backed up successfully to: "%backupFile%"
)
pause
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a batch file to backup the registry settings - thought someone else might find it useful:
winmerge-registry-backup.bat
bat
file to run itRevised 20250331 - add timestamp to name
Beta Was this translation helpful? Give feedback.
All reactions