Internet Explorer archives - Something Wicked This Way Comes

Something Wicked This Way Comes:

Internet Explorer

Jan 15 2009   4:14PM GMT

Windows Batch File to Backup Internet Explorer Favorites



Posted by: Spencer Kuziw
Add new tag, Internet Explorer, Batch, Favorites, Windows, Group Policy

Here is a quick batch file I wrote to copy Microsoft Internet Explorer Favorites to another location. Fill in the BACKUPPATH variable and stick it in a Group Policy logon (or logoff) script to make sure that users have a backup of the bookmarks.

CODE:
  1. @echo off
  2. rem —————————————————————–
  3. rem backup-iefavs.bat
  4. rem Copies Internet Explorer Favorites to another location
  5. rem written by Spencer Kuziw (s.kuziw-at-epic-dot-ca)
  6. rem —————————————————————–
  7.  
  8. rem VARIABLES
  9. rem Path to Backup Location (no quotes necessary for log names)
  10. rem can be a local path or UNC
  11. set BACKUPPATH=%USERPROFILE%\Desktop\Very Long Name This Is
  12.  
  13. :copy
  14. xcopy “%USERPROFILE%\favorites” “%BACKUPPATH%\favorites” /i /t /y
  15. xcopy “%USERPROFILE%\favorites” “%BACKUPPATH%\favorites” /e /i /y
  16.  
  17. :eof