a06lp Posted August 26, 2005 Posted August 26, 2005 (edited) i used to use a cmd file to auto-backup, and auto-restore my personal settings (eg - my docs, my pics, my music, outlook express accounts, outlook express settings).i lost the file, and am trying to re-write it.however, for some reason, "my documents" aren't copying over properly - they copy to "C:\Documents and Settings\Administrator\My Documents", but the desktop "my documents" icon leads to an empty folder. (and there is ONLY one account on the comp - the admin one, created by defualt with xp).Can someone check over my batch and tell me what's wrong?CLS@echo offTITLE N RestoreECHO.for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\Backup set BACKUP=%%i:ECHO Found Backup as drive %BACKUP%.ECHO Copying My Documents... XCOPY "%BACKUP%\My Documents\*.*" "%UserProfile%\My Documents\" /E /Q /YECHO Done.ECHO Copying Outlook Express Settings... regedit /s "%BACKUP%\N Outlook Express.reg"ECHO Done.ECHO Copying Outlook Express Address Book...ECHO Done.ECHO Copying Firefox Bookmarks...ECHO Done.PAUSEgoto :eof Edited August 26, 2005 by a06lp
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