Doppio Posted January 6, 2006 Share Posted January 6, 2006 What is the command to backup and restore a registry key? Link to comment Share on other sites More sharing options...
Doppio Posted January 6, 2006 Author Share Posted January 6, 2006 What is the command to backup and restore a registry key?Here's a Bat file I use for Outlook Client, how can I port this to AutoIt@echo offrem *********************************************************************rem VERSION 1.0 (Walter Torres)rem *********************************************************************echo Processing Arguments...set BACKUP_DIR=.set OPERATION=Backupif %OS%a==a goto OS_9x:OS_NTgoto argLoop:argLoopif "%1"=="/d" goto setDirif "%1"=="/b" goto setBackupif "%1"=="/r" goto setRestoreif "%1"=="" goto begingoto usage:setDirset BACKUP_DIR=%2shiftshiftgoto argLoop:setBackupset OPERATION=Backupshiftgoto argLoop:beginecho Operation: %OPERATION%echo Backup dir: %BACKUP_DIR%rem pausegoto do%OPERATION%goto end:doBackupif not %BACKUP_DIR% == . mkdir "%BACKUP_DIR%"mkdir "%BACKUP_DIR%\Outlook Client"regedit /e "%BACKUP_DIR%\Outlook Client\outlook.reg" "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"goto end:endset BACKUP_DIR=set OPERATION=rem set LSAD=rem set AD= Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now