Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy files only and not folders
Message
De
21/02/2009 09:02:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
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:
01383253
Vues:
40
>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
>
Pathing functions like addbs(), forcepath(), justext() etc were moved from foxtools.fll to FoxPro proper in 2001, when VFP7 was published. Not quite new, eh?
	sourcefile = forcepath(arrFiles(i, 1), lcSourceFolder)
	targetfile = forcepath(arrFiles(i, 1), lcDestinationFolder)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform