Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy files only and not folders
Message
 
 
À
20/02/2009 10:01:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01383073
Message ID:
01383080
Vues:
57
You can use code from http://www.berezniker.com/content/pages/visual-foxpro/file-operations-progressbar with small modification
...
lnFlag = FOF_NOCONFIRMATION + FOF_NOCONFIRMMKDIR + FOF_NOERRORUI
* Add folloeing line
lnFlag = lnFlag + FOF_FILESONLY
lcDestinationFolder = "h:\aaa\TmpCopy"
lcSourceFolder = "h:\tmp\"
IF FileOpWithProgressbar(ADDBS(lcSourceFolder) + "*.*", lcDestinationFolder, "Copy")
  * Success
ENDIF
>
>Can someone help me with code to copy only the files between folders and not copy folders.
>
>Code below copies folders and files
>
>lcSourceFolder = cTxt2
>lcDestinationFolder = cTxt3
>
>#define OverWriteFiles .t.
>loFSO = CreateObject("Scripting.FileSystemObject")
>loFSO.CopyFolder (lcSourceFolder , lcDestinationFolder , OverWriteFiles)
>
>
>Thanks.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform