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:
01383079
Vues:
57
Something like this?:
lcSourceFolder = cTxt2 
lcDestinationFolder = cTxt3 

lcSourceFilter = lcSourceFolder + '\*.*'

nCount = adir( arrFiles, lcSourceFilter )
for i = 1 to nCount
	sourcefile = lcSourceFolder  + '\' + arrFiles( i, 1)
	targetfile = lcDestinationFolder + '\' + arrFiles( i , 1)
	copy file (sourcefile) to (targetfile)

endfor
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform