Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I copy multiples files with Win API
Message
De
18/12/2006 04:48:03
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01178486
Message ID:
01178489
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Stuart,

have a look at
Thread#800855 Message#800856

Agnes
>I want to use the windows API to copy mutliples files from folder A to folder B. My code is as follows:
>
>DECLARE INTEGER CopyFile IN kernel32;
> STRING lpExistingFileName,;
> STRING lpNewFileName,;
> INTEGER bFailIfExists
>
>lnResult = CopyFile ("w:\folder1\*.*","w:\folder2\",0)
>
>This does not work. It only works if I give a filename as follows:
>
>lnResult = CopyFile ("w:\folder1\file.txt","w:\folder2\file.txt",0)
>
>
>How can I copy multiple files. I dont want to use the COPY FILE from VFP as it changes the file mames from Upper to Lower case after the copy is done. The file names need to stay in the CASE they work created it.
>
>I would appreciate some help. Thanks in advance!!
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform