gettingstarted
[Top] [All Lists]

Re: CopyFileTo

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: CopyFileTo
From: Andrew Keller <andrew at kellerfarm dot com>
Date: Sun, 30 May 2004 13:40:00 -0400
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <20040530170007 dot A4ED31FABEC at lists dot realsoftware dot com>
You can create your own Copy method that runs in a thread.  Just use a
BinaryStream to copy the file over.  Something like this:

Note that there's no error checking -- you'll want to add that. But this
will copy the files over in the background if you put it in a thread.
How would I do error checking? I don't see any "LastErrorCode" properties like there is for the folderitem after using CopyFileTo. Does copying using a BinaryStream employ silent errors?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>