General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only