Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CopyFile
Message
De
28/12/2009 11:46:43
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
CopyFile
Divers
Thread ID:
01440868
Message ID:
01440868
Vues:
133
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
Fil
Voir

Click here to load this message in the networking platform