Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
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