Save IE7 Settings To a File ???

Discussion in 'Internet Explorer' started by Youka, May 5, 2009.

  1. Youka

    Youka Guest

    Like most folks, I've customized my IE7 settings via the Internet Properties
    function [Start|Control Panel|Internet Options]

    Is there a way to save my customized settings (General, Security, Privacy,
    Content, Connection, Programs and Advanced) to a file, that can then be
    restored (if needed)?

    Specifically, I'd like to be able to easily revert to my current settings if
    I make changes to my IE7 settings -- and the changes generate unexpected
    results
     
    Youka, May 5, 2009
    #1
    1. Advertisements

  2. Youka

    Leonard Grey Guest

    Unfortunately, it's not possible. Most of the settings are stored in the
    registry.
     
    Leonard Grey, May 5, 2009
    #2
    1. Advertisements

  3. Youka

    rob^_^ Guest

    Hi,

    You can export your IE Settings from the registry to a .reg file. (If you
    know what you are doing). It is quite complicated as there are many registry
    keys that you need to export. Also, there is a danger that you will
    over-write security updates that have been applied by security patches to
    your IE registry keys.

    Creating a System Restore Point, is the best option.

    Regards.
     
    rob^_^, May 6, 2009
    #3
  4. Youka

    Youka Guest

    Thanks for the advise, guys. I actually considered both the System Restore
    and Registry Export options, but was hoping that a better alternative existed.
     
    Youka, May 6, 2009
    #4
  5. Youka

    ju.c Guest

    To save your Internet Explorer settings to a registry file
    on the Desktop, copy each line below (after the number
    and starting with "reg.exe . . .") and paste into the
    Run box (each is one line, no word-wrap!):

    1) reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%UserProfile%\Desktop\IE_1.reg"
    2) reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%UserProfile%\Desktop\IE_2.reg"
    3) reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%UserProfile%\Desktop\IE_3.reg"
    4) reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%UserProfile%\Desktop\IE_4.reg"
    5) reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%UserProfile%\Desktop\IE_5.reg"
    6) reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%UserProfile%\Desktop\IE_6.reg"

    To combine them all into one file just copy everything
    below the top line: Windows Registry Editor Version 5.00
    and paste it at the bottom of the first.

    So, open "IE_1.reg" and scroll down to the bottom. Click
    the bottom to place the cursor there, then open "IE_2.reg"
    and copy everything below "Windows Registry Editor Version
    5.00". Paste it onto the bottom of "IE_1.reg". Repeat for
    the rest. Afterward you'll have your IE settings bached up.


    ju.c
     
    ju.c, May 7, 2009
    #5
  6. Youka

    LuxZg Guest

    Thanks for a tip, I was just looking for this, as I've just setup lots and
    lots of things in IE8 last 2 weeks, and would really like them to be backed
    up.
    I made a batch file that creates a directory on another partition
    (D:\IEbackup), exports all 6 files, joines them in one, and deletes the 6
    files leaving just the single "all-in-one" registry file. I even added date
    in case you want to export these setting all the time without thinking about
    labeling them after export :)
    For my own use, I'll probably add a copy for ad-blocker and IE7Pro config
    files, but let's skip that here for other people that probably don't use
    them..

    So here we go:
    - just open notepad, and copy/pasted my batch script which I pasted below;
    like ju.c said, make sure that "reg.exe export.....reg"" lines aren't
    wrapped, they have to be in one line each (in case that my news reader posts
    differently)
    ---copy from below this line---

    CD ..
    CD ..
    CD ..
    CD ..
    D:
    CD ..
    CD ..
    CD ..
    CD ..
    mkdir IEbackup
    CD IEbackup
    reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer"
    "D:\IEbackup\IE_1.reg"
    reg.exe export
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
    Settings" "D:\IEbackup\IE_2.reg"
    reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet
    Explorer" "D:\IEbackup\IE_3.reg"
    reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer"
    "D:\IEbackup\IE_4.reg"
    reg.exe export
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
    Settings" "D:\IEbackup\IE_5.reg"
    reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet
    Explorer" "D:\IEbackup\IE_6.reg"
    copy *.reg "IEBackup_%DATE%_complete.reg"
    del IE_*.reg

    ---end copy before this line---

    Save that file as "ie_export.bat" anywhere on your disk. To save data in
    different folder or on another partition you'll have to edit a little
    ofcourse.. And sorry for multiple "CD .." lines, had to do it so batch file
    runs fine from Desktop or My Documents.. I'm not much into DOS and bat
    files, probably a better way exists :D

    So once batch file is saved, you can just run it any time you want to backup
    your registry. It should work nice and fine, and will just add the reg files
    labeled with dates to that same backup folder.

    I've got one question and one problem though. First easy one - if I have
    multiple "Windows Registry Editor Version 5.00" lines in .reg file, will
    this be a problem when file is imported? As my batch just merges those reg
    files, so I have one line for every reg file that was created... :/

    And a problem is - I get error that both "Policies" keys are not found:
    "ERROR: The system was unable to find the specified registry key or value."
    Windows 7+IE8 here, so I guess it's in some other place, or ju.c missed a
    letter, not sure. But anyway, if these are Group Policies for IE, and I
    don't use them, neither home or at work (and where I do, I certainly don't
    want "empty" policies from home to overwrite any at work if I'm transfering
    settings between computers). So should I just ditch those two reg
    keys/export steps? Anything important in them for user settings?

    Thanks again, and I hope my batch file will make it easier for others a bit,
    unless I've complicated it even more :D

    Luka


    __________ Information from ESET NOD32 Antivirus, version of virus signature database 4080 (20090515) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com
     
    LuxZg, May 17, 2009
    #6
  7. Youka

    ju.c Guest

    RE: "And a problem is - I get error that both "Policies" keys are not found"
    That's just info that the key does not exist, ignore it. If you remove the line
    now and a policy is created some time in the future then you wouldn't have
    it backed up.

    You can use "CD\" to change to the root directory, instead of CD .., CD .., etc.

    Use a variable for the drive letter so you only need to change it once.

    I tweaked your batch file:

    ----------copy-inside-only----------
    @echo off

    :: To change the path just replace "D:\IEbackup"
    set path=D:\IEbackup
    mkdir %path%
    cd %path%

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    copy "%path%\*.reg" "%path%\IEBackup_%DATE%_complete.reg"
    del "%path%\IE_*.reg"
    pause
    cls
    exit

    ----------copy-inside-only----------


    ju.c


     
    ju.c, May 17, 2009
    #7
  8. Youka

    ju.c Guest

    I Forgot...

    RE: "if I have multiple "Windows Registry Editor Version 5.00" lines
    in .reg file, will this be a problem when file is imported? As my
    batch just merges those reg files, so I have one line for every reg
    file that was created."

    I don't know, but you can just open the file in notepad, search and
    replace all "Windows Registry Editor Version 5.00" with nothing.
    Paste "Windows Registry Editor Version 5.00" at the top again
    before saving!


    ju.c


     
    ju.c, May 17, 2009
    #8
  9. Youka

    ju.c Guest

    Here it is again, but now it opens the file in Notepad so
    you can remove the extra lines of:
    "Windows Registry Editor Version 5.00"

    ----------copy-inside-only----------
    @echo off

    :: To change the path just replace "D:\IEbackup"
    set path=D:\IEbackup
    mkdir %path%
    cd %path%

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    copy "%path%\*.reg" "%path%\IEBackup_%DATE%_complete.reg"
    del "%path%\IE_*.reg"
    echo.
    echo Backup complete. Press any key to close this command window and open the file in Notepad.
    pause>nul
    start "IEBackup_%DATE%_complete" notepad.exe "%path%\IEBackup_%DATE%_complete.reg"
    cls
    exit

    ----------copy-inside-only----------


    ju.c


     
    ju.c, May 17, 2009
    #9
  10. Youka

    ju.c Guest

    Question: "Is there a way to save my customized Internet Explorer
    settings (General, Security, Privacy, Content, Connection, Programs
    and Advanced) to a file, that can then be later restored? Specifically,
    I'd like to be able to easily revert to my current settings if I make
    changes to my IE7 settings, and the changes generate unexpected
    results."

    There sure is!

    Here are two batch files, each with a slight difference, that will
    export Internet Explorer's registry settings to a folder that you
    specify. After it runs, the registry file will be opened in Notepad
    so you can search and replace the multiple instances of,
    "Windows Registry Editor Version 5.00"

    1. Copy the top one then open 'Edit-->Replace'

    2. Paste it into the top line leaving the bottom one empty. Leave
    "Match case" un-checked, then click "Replace All".

    3. Paste it back to the very top then save. Done.


    ----------copy-inside-only----------
    @echo off

    :: Use this batch file when you want to
    :: enter the path each time you run it.

    echo Enter the path to the Internet Explorer backup folder.
    echo If the folder does not exist, it will be created.
    echo.
    echo Do not include a backslash (\) at the path end, and
    echo don't include any quotes. For example, you could enter:
    echo.
    echo J:\IE Backups
    echo.

    set /p path=%1
    if not exist "%path%" (mkdir "%path%")

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    echo.

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    del "%path%\IE_*.reg"
    echo.

    echo Backup complete. Press any key to close this command window and open the file in Notepad.
    pause>nul

    start "IE_Settings_%DATE%" notepad.exe "%path%\IE_Settings_%DATE%.reg"
    cls
    exit

    ----------copy-inside-only----------


    ----------copy-inside-only----------
    @echo off

    :: Use this batch file when you don't want
    :: to enter the path each time you run it.

    :: To change the path just replace "J:\IE Backups"
    :: Do not include a backslash (\) at the end, and don't
    :: include any quotes. For example, you could enter:
    :: J:\IE Backups

    set path=J:\IE Backups
    if not exist "%path%" (mkdir "%path%")

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    echo.

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    del "%path%\IE_*.reg"
    echo.

    echo Backup complete. Press any key to close this command window and open the file in Notepad.
    pause>nul

    start "IE_Settings_%DATE%" notepad.exe "%path%\IE_Settings_%DATE%.reg"
    cls
    exit

    ----------copy-inside-only----------


    ju.c
     
    ju.c, May 18, 2009
    #10
  11. Both of your Batch files fail here on Window XP Home machines.

    When the "Copy" command is executed in Batch file at the following line:

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"

    The following error is thrown in the command box:

    C:\IE Backups\IE_1.reg
    The system cannot find the path specified.
    0 file<s> copied.

    So that, IE_Settings_.reg is not created.

    Any idea why?

    Donald Anadell
     
    Donald Anadell, May 18, 2009
    #11
  12. Youka

    ju.c Guest

    I changed some names and didn't notice this:

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    del "%path%\IE_*.reg"

    The second line deletes all the files because the names are
    "IE_#" and "IE_Settings", which the last one used to be "IE_Backup".
    The star "IE_*" means to delete everything that comes after "IE_".

    just change:

    del "%path%\IE_*.reg"

    to:

    del "%path%\IE_1.reg"
    del "%path%\IE_2.reg"
    del "%path%\IE_3.reg"
    del "%path%\IE_4.reg"
    del "%path%\IE_5.reg"
    del "%path%\IE_6.reg"

    This is the result in the command window:

    ==========output==========

    Enter the path to the Internet Explorer backup folder.
    If the folder does not exist, it will be created.

    Do not include a backslash (\) at the path end, and
    don't include any quotes. For example, you could enter:

    J:\IE Backups

    C:\Temp\IE Backups

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    C:\Temp\IE Backups\IE_1.reg
    C:\Temp\IE Backups\IE_2.reg
    C:\Temp\IE Backups\IE_3.reg
    C:\Temp\IE Backups\IE_4.reg
    C:\Temp\IE Backups\IE_5.reg
    C:\Temp\IE Backups\IE_6.reg
    1 file(s) copied.

    Backup complete. Press any key to close this command window and open the file in Notepad.

    ==========output==========

    Try it now. I have confirmed it works in XP Pro and Vista Home Premium.

    I'll post the new batch files after this post.


    ju.c
     
    ju.c, May 18, 2009
    #12
  13. Youka

    ju.c Guest

    Question: "Is there a way to save my customized Internet Explorer
    settings (General, Security, Privacy, Content, Connection, Programs
    and Advanced) to a file, that can then be later restored? Specifically,
    I'd like to be able to easily revert to my current settings if I make
    changes to my IE7 settings, and the changes generate unexpected
    results."

    There sure is!

    Here are two batch files, each with a slight difference, that will
    export Internet Explorer's registry settings to a folder that you
    specify. After it runs, the registry file will be opened in Notepad
    so you can search and replace the multiple instances of,
    "Windows Registry Editor Version 5.00"

    1. Copy the top one then open 'Edit-->Replace'

    2. Paste it into the top line leaving the bottom one empty. Leave
    "Match case" un-checked, then click "Replace All".

    3. Paste it back to the very top then save. Done.


    ----------copy-inside-only----------
    @echo off

    :: Use this batch file when you want to
    :: enter the path each time you run it.

    echo Enter the path to the Internet Explorer backup folder.
    echo If the folder does not exist, it will be created.
    echo.
    echo Do not include a backslash (\) at the path end, and
    echo don't include any quotes. For example, you could enter:
    echo.
    echo J:\IE Backups
    echo.

    set /p path=%1
    if not exist "%path%" (mkdir "%path%")

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    echo.

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    del "%path%\IE_1.reg"
    del "%path%\IE_2.reg"
    del "%path%\IE_3.reg"
    del "%path%\IE_4.reg"
    del "%path%\IE_5.reg"
    del "%path%\IE_6.reg"
    echo.

    echo Backup complete. Press any key to close this command window and open the file in Notepad.
    pause>nul

    start "IE_Settings_%DATE%" notepad.exe "%path%\IE_Settings_%DATE%.reg"
    cls
    exit

    ----------copy-inside-only----------


    ----------copy-inside-only----------
    @echo off

    :: Use this batch file when you don't want
    :: to enter the path each time you run it.

    :: To change the path just replace "J:\IE Backups"
    :: Do not include a backslash (\) at the end, and don't
    :: include any quotes. For example, you could enter:
    :: J:\IE Backups

    set path=J:\IE Backups
    if not exist "%path%" (mkdir "%path%")

    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer" "%path%\IE_1.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_2.reg"
    %WinDir%\system32\reg.exe export "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer" "%path%\IE_3.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" "%path%\IE_4.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "%path%\IE_5.reg"
    %WinDir%\system32\reg.exe export "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer" "%path%\IE_6.reg"
    echo.

    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    del "%path%\IE_1.reg"
    del "%path%\IE_2.reg"
    del "%path%\IE_3.reg"
    del "%path%\IE_4.reg"
    del "%path%\IE_5.reg"
    del "%path%\IE_6.reg"
    echo.

    echo Backup complete. Press any key to close this command window and open the file in Notepad.
    pause>nul

    start "IE_Settings_%DATE%" notepad.exe "%path%\IE_Settings_%DATE%.reg"
    cls
    exit

    ----------copy-inside-only----------


    ju.c
     
    ju.c, May 18, 2009
    #13
  14. Still not working here on two XP Home machines.

    Here's the content of the Command Box here:

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    C:\IE Backups\IE_1.reg
    The system cannot find the path specified.
    0 file(s) copied.

    It's still failing on the copy command because it states that it cannot find
    the path to IE_1.reg.

    The deleting of the exported .reg files in the designated folder is not a
    problem in any of your incarnations of this Batch file, it's the creation of
    the combined .reg file that is hitting the snag?

    Donald Anadell
     
    Donald Anadell, May 18, 2009
    #14
  15. Youka

    ju.c Guest

    I've found the problem and fixed a few more bugs...

    Replace the "_" with "-" for all of these: IE_1.reg, IE_2.reg, etc.

    Change this line:

    ----------code----------
    copy "%path%\*.reg" "%path%\IE_Settings_%DATE%.reg"
    ----------code----------

    To this:
    ----------code----------
    if not exist "%path%\IE_Settings_%DATE%.reg" (
    copy "%path%\IE-*.reg" "%path%\IE_Settings_%DATE%.reg") else (
    copy "%path%\IE-*.reg" "%path%\IE_Settings_%DATE%_new.reg")

    del "%path%\IE-*.reg"
    ----------code----------

    Rather than post them here again, I've uploaded the final
    versions to MediaFire. Enjoy!

    IE_Settings_Backup.zip 2 KB
    http://www.mediafire.com/download.php?zczyjtfdfzm


    ju.c
     
    ju.c, May 19, 2009
    #15
  16. No joy here with your revised version(s) of the Batch file, I still end up
    with an empty folder. It's still failing to create the
    "IE_Settings_%DATE%.reg" file, see the Command box printout below(0 file(s)
    copied):

    Enter the path to the Internet Explorer backup folder.
    If the folder does not exist, it will be created.

    Do not include a backslash (\) at the path end, and
    don't include any quotes. For example, you could enter:

    C:\IE Backups

    C:\IE Backups

    The operation completed successfully
    The operation completed successfully
    The operation completed successfully
    The operation completed successfully
    The operation completed successfully

    If you got this error message above:
    "Error: The system was unable to find the specified registry key or
    value"
    just ignore it, it simply means that the registry key does not exist.

    C:\IE Backups\IE-1.reg
    The system cannot find the path specified.
    0 file(s) copied.

    Backup complete. Press any key to close this command window and open the
    file in
    Notepad.

    I've now tested this Batch file on 5 seperate Windows XP machines and one
    Windows XP Pro installation on a Virtual machine with the same results.

    Donald Anadell
     
    Donald Anadell, May 19, 2009
    #16
  17. Youka

    ju.c Guest

    I've tested it and sent it to others who all confirm that it
    works perfectly. Delete the top line: @echo off then run
    it and post the output. I'll get a better idea when I see it.

    Here's my output:

    ----------code----------
    Enter the path to the Internet Explorer backup folder.
    If the folder does not exist, it will be created.

    Do not include a backslash (\) at the path end, and
    don't include any quotes. For example, you could enter:

    C:\IE Backups

    C:\IE Backups

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    If you got this error message above:
    "Error: The system was unable to find the specified registry key or value"
    just ignore it, it simply means that the registry key does not exist.

    C:\IE Backups\IE-1.reg
    C:\IE Backups\IE-2.reg
    C:\IE Backups\IE-3.reg
    C:\IE Backups\IE-4.reg
    C:\IE Backups\IE-5.reg
    C:\IE Backups\IE-6.reg
    1 file(s) copied.

    ----------code----------


    ju.c
     
    ju.c, May 20, 2009
    #17
  18. Youka

    Richard Guest

    To avoid the * wildcard, repetition, and possible problem
    with "_" character, how about? --

    del "%path%\IE-?.reg

    ; [with more ?'s if adapting code to handle more than 9 reg's.]

    Thanks for your insights on this and other topics.
    --Richard
     
    Richard, May 20, 2009
    #18
  19. Here's the Output you asked for:

    ------------code-------------


    C:\>echo Enter the path to the Internet Explorer backup folder.
    Enter the path to the Internet Explorer backup folder.

    C:\>echo If the folder does not exist, it will be created.
    If the folder does not exist, it will be created.

    C:\>echo.

    C:\>echo Do not include a backslash (\) at the path end, and
    Do not include a backslash (\) at the path end, and

    C:\>echo don't include any quotes. For example, you could enter:
    don't include any quotes. For example, you could enter:

    C:\>echo.

    C:\>echo C:\IE Backups
    C:\IE Backups

    C:\>echo.

    C:\>set /p path=
    C:\IE Backups

    C:\>if not exist "C:\IE Backups" (mkdir "C:\IE Backups" )

    C:\>C:\WINDOWS\system32\reg.exe export
    "HKEY_CURRENT_USER\Software\Microsoft\Int
    ernet Explorer" "C:\IE Backups\IE-1.reg"

    The operation completed successfully

    C:\>C:\WINDOWS\system32\reg.exe export
    "HKEY_CURRENT_USER\Software\Microsoft\Win
    dows\CurrentVersion\Internet Settings" "C:\IE Backups\IE-2.reg"

    The operation completed successfully

    C:\>C:\WINDOWS\system32\reg.exe export
    "HKEY_CURRENT_USER\Software\Policies\Micr
    osoft\Internet Explorer" "C:\IE Backups\IE-3.reg"

    The operation completed successfully

    C:\>C:\WINDOWS\system32\reg.exe export
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\In
    ternet Explorer" "C:\IE Backups\IE-4.reg"

    The operation completed successfully

    C:\>C:\WINDOWS\system32\reg.exe export
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wi
    ndows\CurrentVersion\Internet Settings" "C:\IE Backups\IE-5.reg"

    The operation completed successfully

    C:\>echo.

    C:\>echo If you got this error message above:
    If you got this error message above:

    C:\>echo "Error: The system was unable to find the specified registry key
    or
    value"
    "Error: The system was unable to find the specified registry key or
    value"

    C:\>echo just ignore it, it simply means that the registry key does not
    exist.

    just ignore it, it simply means that the registry key does not exist.

    C:\>echo.

    C:\>if not exist "C:\IE Backups\IE_Settings_Wed 05/20/2009.reg" (copy "C:\IE
    Bac
    kups\IE-*.reg" "C:\IE Backups\IE_Settings_Wed 05/20/2009.reg" ) else (copy
    "C:\
    IE Backups\IE-*.reg" "C:\IE Backups\IE_Settings_Wed 05/20/2009_new.reg" )
    C:\IE Backups\IE-1.reg
    The system cannot find the path specified.
    0 file(s) copied.

    C:\>del "C:\IE Backups\IE-*.reg"

    C:\>echo.

    C:\>echo Backup complete. Press any key to close this command window and
    open the file in Notepad.
    Backup complete. Press any key to close this command window and open the
    file in Notepad.

    C:\>pause1>nul

    ----------code----------


    Donald Anadell
     
    Donald Anadell, May 20, 2009
    #19
  20. OK, I played around with the Batch file a little more this afternoon and
    finally got it to work here. But,in order to get it to work here I had to
    change all instances of:

    IE_Settings_%DATE%.reg

    to read:

    IE_Settings.reg

    Now it works on all machines here as long as "_%DATE%" is removed from all
    instances of "IE_Settings_%DATE%.reg" in the Batch file .
    Here's the final Output after making the changes:

    ----------code----------

    Enter the path to the Internet Explorer backup folder.
    If the folder does not exist, it will be created.

    Do not include a backslash (\) at the path end, and
    don't include any quotes. For example, you could enter:

    C:\IE Backups

    C:\IE Backups

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    The operation completed successfully

    If you got this error message above:
    "Error: The system was unable to find the specified registry key or
    value"
    just ignore it, it simply means that the registry key does not exist.

    C:\IE Backups\IE-1.reg
    C:\IE Backups\IE-2.reg
    C:\IE Backups\IE-3.reg
    C:\IE Backups\IE-4.reg
    C:\IE Backups\IE-5.reg
    1 file(s) copied.

    Backup complete. Press any key to close this command window and open the
    file in
    Notepad.

    ------------code---------



    Donald Anadell
     
    Donald Anadell, May 20, 2009
    #20
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.