----- Original Message -----
From: "Alistair George" <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 1:35 PM
Subject: [DUG]: fileopenmode
> Hi all.
> Using NT/XP and trying to do a backup, there is a fileopen error even
though I
> have defined the following:
> fileopenmode:=fmOpenRead or fmShareDenyNone;
>
> Is there any way around this??
The share mode affects the rights that other programs have when they try to
open the file AFTER you do. If another program, or the system, already has
the file open in exclusive mode then you can't do much about that.
David's solution is about the best. Making a copy of the file is about the
simplest way to get at the data. Copy it, read the copy into your backup
with the same details (filename, attribs, etc) as the original, then kill
the copy.
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/