No, only one /y switch is required, of course. Thanks
for pointing this out.
I'm not very fond of the /m switch. The archive attribute
(which the switch monitors) can be set by programs other
than xcopy.exe too. The /d switch is more reliable - it
ensures that the target folder always has a full set of the
latest files, without causing unchanged files to be copied again.
"Stubby" <William.Plummer-NOSPAM-@alum.mit.edu> wrote in message
news:_(E-Mail Removed)...
> Are two "/y" switches needed?
> You might want to add /e to copy empty directories, /s to copy
> subdirectories and /m to mark files as having been backed up. /m will
> caused them to be skipped the next time you backup.
>
>
> Pegasus (MVP) wrote:
> > "TR" <(E-Mail Removed)> wrote in message
> > news:ebra7o$3t$(E-Mail Removed)...
> >> Hi,
> >> Using windows 2000 on our work computer and we have to backup our
files.
> > Is
> >> there a simple program that can look for selected files (in our case
doc
> > and
> >> xls) on the harddrive and back them up to a flash drive?
> >> We have a number of users creating important files all over the
harddrive.
> >> Using the Win 2000 backup program is a nightmare, trying manually to
find
> >> all the files. It does not seem to have a filter system in it.
> >> Any suggestions for an easy to use program would be appreciated.
> >>
> >> TR
> >>
> >>
> >
> > Create the batch file below, then create a shortcut to it so that
> > your users can click it when necessary.
> >
> > @echo off
> > xcopy /y /c /d /y "c:\Documents and Settings*.doc" F:\Backup\
> > xcopy /y /c /d /y "c:\Documents and Settings*.xls" F:\Backup\
> > echo.
> > echo Press the Space Bar to close this window.
> > pause > nul
> >
> >
|