Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I'm trying to create a simple batch file to copy the entire contents of my Favorites folder to another location on a diferent hard drive for backup purposes.
My Favorites folder has subfolders containing the Favorites links. I want to copy the entire tree from the Favorites folder down thru the subfolders and all the contents of those subfolders. What's the command syntax for the DOS box in XP Pro please?
And while I'm at it, I don't suppose it's possible, but has anyone ever managed to rename their Favorites folder to Favourites. Irritates the hell out of me that Bill doesn't want to produce an English version of XP when he does just about any other non-US language. (Steps off soapbox).
Thanks,
Roger.

Great, another idiot who imagines that every vaguery in any version of Windows is the sole rsponsibility of Bill Gates. How dumb.
Try using the Help files - they help!
At a command prompt: copy /?, or xcopy /?

A word of advice:
When asking of people for their kindness and support, it does not serve any benefit to disparage those who may be in a position to help.
Let's not worry about the American dictionary - it's been in use with Microsoft and other supplier's products for decades.
As for your request: if one is to backup using a utility then the folders & files to be backed up can be saved. I refer to those which are provided with ZIP drives, CR Burners etc. or even Backup in XP itself: which further allows for incremental backup; thus only copying new or changes files and their folders.
If you are backing up from one folder to another on the same Hard Disk, there would appear to be little benefit in such an exercise.

Way out of line Chuck. But he is right. Make a new batch file with the following
xcopy /e /i "%HOMEDRIVE%%HOMEPATH%\favorites" "a:\BuFavorites"
"%HOMEDRIVE%%HOMEPATH%\favorites" tells xcopy which folder to copy.
"a:\BuFavorites" is the destination of the backup files
Hope this helps,
Sandman

One more thing to add to my last post. If you always back up to the same location you might want to add the /y switch so it won't prompt you to overwrite files every time.
xcopy /e /i /y "%HOMEDR.....
Sandman

Guys, taken in order:
Chuck:
1. I'm not an idiot but you are rude.
2. Learn to spell.
3. For "Bill" read "Microsoft".
4. I tried using xcopy (as it says in the helpfiles, which I *do* read). It should copy directory trees but I can only get it to copy files, not subfolders which I was expecting, hence my request for help with the syntax.Brian:
Thanks for a sane (and polite) reply. I don't think I was disparaging unnecessarily - I seem to remember there was talk of a Welsh Language version of Windows at some point (don't know if it ever happened, but there are certainly lots of languages supported), so why not UK English?
I wanted to write the batch file for the mental exercise, but thanks for pointing out the utilities I could use.
I did mention that I'm backing up to a different harddrive. Having recently had a drive failure, I'm all too aware that they can go bang!
Thanks again!
Sandman:
Thanks, I'll try that tonight. If I get it going I'll post back and let you know.
Bon Bon:
Thanks for the smile! :-)
Cheers all,
Roger.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |