View Single Post
  #7 (permalink)  
Old 06-12-2009, 10:00 AM
Terry R.
Newsgroup Contributor
 
Posts: n/a
Re: xcopy command line for files and folders

The date and time was Friday, June 12, 2009 7:29:24 AM, and on a whim,
Robert Macy pounded out on the keyboard:

> On Jun 12, 6:44 am, "Terry R." <F1...@NOSPAMpobox.com> wrote:
>> The date and time was Thursday, June 11, 2009 11:11:21 PM, and on a
>> whim, SPAMCOP User pounded out on the keyboard:
>> ..snip...
>> If I hadn't already done that, I wouldn't be posting here. Maybe you
>> think asking a question is a first resort for some people. It's my last
>> resort.
>>
>> Terry R.

>
> I've had Windows Explorer file copy commands too often leave a copied
> file corrupted, so...
>
> For many applications, I also prefer XCOPY.
>
> I've written several batch files and leave them on the Desktop. That
> way, when I want 'backup', or synchronizing filesets; I simply double
> click on the icon.
>
> If you're interested in that type of approach...
>
> an example of a batch file to only transfer files with new dates, or
> are newly created::
>
> filename D2F.bat
>
> echo off
> verify on
> xcopy D:\AAA\$Contacts\*.* F:\AAA\$Contacts\*.* /D /E /C /H /Y
> pause
> echo on
>
> 'pause' stops WinXP from exiting [and blanking all the inofrmation of
> what just happened] before you can read the list of files or see a
> list of the activity.
>
> Of important note with XCOPY, be sure to set VERIFY ON, else, and this
> has happened to me more than once, Windows will copy and corrupt your
> file and you'll never know until you go to use it.
>
> Robert


Hi Robert,

I have been using WE for a long time. Since I have files in more than
one location, I thought it would be more useful to create a batch file
with everything being copied within one script, rather than waiting 45
minutes for the first copy to complete, then grab another set of
files/folders and copy again, then repeat the processes to yet another
external drive (I create 2 backup copies on external drives before
removing the files from the internal drives). These are large video
files and take a long time to copy.

I use xcopy to backup my data each day to another internal drive, so I'm
familiar with using it, and I'm also an old DOS batch file user. It's
just the commands I used copied the files, but not the folders. And
every variation I tried didn't resolve it. That's why I finally asked
in here.

I also read that VERIFY doesn't matter in xcopy. It's used only for
compatibility.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Reply With Quote

 
Old 06-12-2009, 10:00 AM