Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CopyFile
Message
From
28/12/2009 11:46:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
CopyFile
Miscellaneous
Thread ID:
01440868
Message ID:
01440868
Views:
135
I have a VFP app that imports DBFs from another app (not VFP based). The DBFs I need to import reside on the server. Until several weeks ago I brought them in with the VFP COPY FILE.

COPY FILE e:\abc\xyz.dbf TO data\xyz.dbf

The COPY FILE now fails with a VFP message that data\xyx.dbf cannot be created. In the old days, the app that created the DBFs on the server was up with multiple users when my COPY FILEs ran. Never an issue. Now, if all users shut down the app creating/maintaining the DBFs, my COPY FILEs work just fine. With one user running the app, copy/paste in Windows Explorer fails as does a DOS copy in a DOS box.

I tried the Win32 API CopyFile. It works fine on a file that is open in the VFP MODIFY COMMAND and on a DBF created by the other app when there are no users with the app up. Bring up one user with the app that creates/maintains the DBFs and my Win32 CopyFile fails.

Obviously, the other app has somehow changed the access rights on the DBFs. Any thoughts on what I should do?

Tim
Next
Reply
Map
View

Click here to load this message in the networking platform