Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy File Command
Message
De
04/09/2014 10:16:15
Kevin Hickman
The Cadle Company
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Copy File Command
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01607048
Message ID:
01607048
Vues:
69
I wrote a program in VFP which I used in XP and everything worked fine with it.
It used a copy file command and although it used wildcards for the extensions and files were open at the time on the network, it still copied them all and performed the needed functions.

I am now running the same code on a windows 7 machine and it does not get any of the files which are open. It now works correctly as defined , but does not give me what I need.

I looked for something that would copy for open files as well and found this function which says it works with the kernel and allows for copy of open files as well, but it does not seem to work properly as well missing them and putting locks on the tables:

DECLARE INTEGER CopyFile IN kernel32;
STRING lpExistingFileName,;
STRING lpNewFileName,;
INTEGER bFailIfExists

Can anyone give me an idea of some code that will work with VFP to copy files similar to the way you can from a simple DOS prompt, even if they are in use currently?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform