Save IE7 Settings To a File ???

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

  1. Youka

    Alan Edwards Guest

    Alan Edwards, May 20, 2009
    #21
    1. Advertisements

  2. Youka

    ju.c Guest

    Your problem is with how you have your
    "Regional and Language Settings" configured.
    Slashes are illegal characters in DOS commands.

    See the slashes in the date"/" :

    ----------code----------
    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.
    ----------code----------

    If you want the date in the filename you'll have to
    change your "Regional and Language Settings".

    I have mine setup like this: "05-21-2009"


    ju.c
     
    ju.c, May 21, 2009
    #22
    1. Advertisements

  3. Thanks.

    Yes, I discovered that date separator issue after I posted yesterday.
    Apparently Windows XP defaults to the forward slash (/).

    Donald Anadell
     
    Donald Anadell, May 21, 2009
    #23
  4. Youka

    ju.c Guest

    You're welcome.

    You could add a prompt to ask for the current date:

    ----------code----------
    echo Enter todays date, like this: 00-00-00
    set /p today=%1

    if not exist "C:\IE Backups\IE_Settings_%today%.reg" (
    copy "C:\IE Backups\IE-*.reg" "C:\IE Backups\IE_Settings_%today%.reg" ) else (
    copy "C:\IE Backups\IE-*.reg" "C:\IE Backups\IE_Settings_%today%_new.reg")
    ----------code----------

    The variable "%1" would be "%2" if it came after the
    prompt for the path.


    ju.c
     
    ju.c, May 21, 2009
    #24
  5. Yeah thanks again ju.c, that works like a charm. For anyone else reading
    this don't forget to change the Notepad start section as well:

    if exist "%path%\IE_Settings_%today%_new.reg" (
    start "IE Settings Backup" notepad.exe
    "%path%\IE_Settings_%today%_new.reg") else (
    start "IE Settings Backup" notepad.exe "%path%\IE_Settings_%today%.reg")

    Donald Anadell
     
    Donald Anadell, May 21, 2009
    #25
  6. Youka

    Youka Guest

    When I downloaded the "IE Settings Backup.zip" file and ran the "IE Backup 2"
    batch file, I received the following message:

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


    Here are the details:
    ------------------------------
    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:\IE8 Backup Settings

    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:\IE8 Backup Settings\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.
     
    Youka, May 30, 2009
    #26
  7. Youka

    Youka Guest

    My apologies for my last post. I inadvertently overlooked ju.c's post
    regarding "Regional and Language Settings".

    Once I changed my from the Windows XP forward slash (/) default to a dash
    (-) format, things ran smoothly.

    Again, Thanks!
     
    Youka, May 30, 2009
    #27
  8. Youka

    ju.c Guest

    ju.c, May 30, 2009
    #28
  9. Youka

    ju.c Guest

    Well, I think this is the last edit.

    - Now it uses rededit.exe instead of reg.exe so there will be no
    error if a registry key doesn't exist.
    - Automatically fixes the date format, converts slashes to dashes.
    - Tells you if the backup was created or not, letting you try again.
    - Cleaned up the code.

    IE_Settings_Backup_v3.zip 2 KB
    http://www.mediafire.com/download.php?0qzgmnoyyzc

    Please enjoy!


    ju.c
     
    ju.c, May 30, 2009
    #29
  10. [REDEDIT.EXE or REGEDIT.EXE?]

     
    PA Bear [MS MVP], May 30, 2009
    #30
  11. Youka

    ju.c Guest

    ju.c, Jun 5, 2009
    #31
  12. Youka

    ju.c Guest

    ju.c, Jun 7, 2009
    #32
  13. Youka

    ju.c Guest

    ju.c, Jun 7, 2009
    #33
  14. Youka

    ju.c Guest

    Correction.

    I shouldn't have used the system variable "%PATH%" for
    the folder location variable, so you should fix it

    Change "PATH" to "folder" on this line:

    Before: SET PATH=C:\IE Backups
    After: SET folder=C:\IE Backups

    Then search and replace all %PATH% with %folder%

    That's all. Enjoy!


    You can get the final version here:

    IE_Settings_Backup_Final.zip 3 KB
    http://www.mediafire.com/download.php?01yjitj4ogj


    ju.c
     
    ju.c, Jun 7, 2009
    #34
    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.