Something Wicked This Way Comes

Jan 15 2009   4:14PM GMT

Windows Batch File to Backup Internet Explorer Favorites

Dave Raffo Dave Raffo Profile: Dave Raffo

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.

@echo off
rem -----------------------------------------------------------------
rem backup-iefavs.bat
rem Copies Internet Explorer Favorites to another location
rem written by Spencer Kuziw (s.kuziw-at-epic-dot-ca)
rem -----------------------------------------------------------------

rem VARIABLES
rem Path to Backup Location (no quotes necessary for log names)
rem can be a local path or UNC
set BACKUPPATH=%USERPROFILE%\Desktop\Very Long Name This Is

:copy
xcopy "%USERPROFILE%\favorites" "%BACKUPPATH%\favorites" /i /t /y
xcopy "%USERPROFILE%\favorites" "%BACKUPPATH%\favorites" /e /i /y

:eof

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: