Article View: borland.public.delphi.nativeapi
Article #150Re: CopyFile winapi failing with WinXP and/or ntfs?
From: Kurt Barthelmess (TeamB)
Date: Wed, 21 Jan 2004 09:57
Date: Wed, 21 Jan 2004 09:57
22 lines
1733 bytes
1733 bytes
"bcb" <noemail@sorry.com> wrote: >I'm positively sure it's not that. Not in this case anyway, since I can >access and modify that folder's files through network neighboorhood from >another pc From which user id? It would have to be tested using the customer's id. >Any other ideas? When you call CopyFile and it fails, GetLastError tells you the reason. What value is being returned by that? I would write a "stupid" app that does nothing but a copyfile, using the same source and destination that the user had a problem with. Put some diagnostic code in there to check your ability to read the source, write to the destination, and then call CopyFile. If it fails, see what GetLastError reports. Good luck. Kurt
Technical Details
Message-ID:
<400e4c34.119829125@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<400d9c8a@newsgroups.borland.com> <400dc7b7.85912085@newsgroups.borland.com> <400df86c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,ca9bf307aee7c9f1 X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-21 02:01:18 PST From: kbarthelmess@compuserve.com (Kurt Barthelmess (TeamB)) Newsgroups: borland.public.delphi.nativeapi Subject: Re: CopyFile winapi failing with WinXP and/or ntfs? Date: Wed, 21 Jan 2004 09:57:28 GMT Organization: Scharf Systems Message-ID: <400e4c34.119829125@newsgroups.borland.com> References: <400d9c8a@newsgroups.borland.com> <400dc7b7.85912085@newsgroups.borland.com> <400df86c@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 216.192.39.4 X-Trace: newsgroups.borland.com 1074679044 216.192.39.4 (21 Jan 2004 01:57:24 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail