Information générale
Catégorie:
Fonctions Windows API
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement