Oct 29, 2015
143
3
81
Hey everybody,
Not sure if this is the right spot for a question about xcopy, but here's my issue:

I'm currently trying to write a script for an old fella so I can keep a backup all of his work that he's done in Family Tree Maker. Now he's using an old 2005 version and from what I can tell he's had to create a new .ftw file for each family name so he's got quiet a few of these files.

Here is what I currently have written for the backup script:

@ECHO off
rem BackupDrive.BAT transfers all source
rem files in the specified directories on the source
rem drive (C) to the destination drive (Z)

xcopy C:\Users\User\Documents\Family Tree Info\ E:\Family Tree Backup /D /E /Y /C /K

pause

:exit

Problem is when I run it I get this error "Invalid number of parameters", I'm not real great with creating xcopy script so I'm not sure what I've goofed on.

Thanks in advance!
 
Last edited:

Dahak

Diamond Member
Mar 2, 2000
3,752
25
91
the first issue is that you need to have " " around paths that have spaces so it should look like this
Code:
xcopy "C:\Users\User\Documents\Family Tree Info\" "E:\Family Tree Backup" /D /E /C /K /Y

Thats probably what's giving the issue
 
Oct 29, 2015
143
3
81
Yup that was exactly it! I had modified that script from one I've been using for people who wanted a free backup, I've looked at the original I don't know how many times and overlooked it each time. Thank you.

Just in case anyone else ties this script, I also had to remove the \ at the end of family tree info.