Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files
Message
 
À
05/02/1999 17:45:28
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00184556
Message ID:
00184564
Vues:
20
>This one goes to all you gu-ru's out there
>
>Is there a way to copy files from one directory to another programmatically? I am programming a backup utility for an application.
>
>Thanks
>
>Jim
FromDir = 'MyOrigDir'
ToDir = 'MyBakDir'
FileCt = ADIR(FileArr, m.FromDir+'\*.*', ['HS'])
FOR FileNum = 1 TO m.FileCt
  COPY FILE (m.FromDir + '\' + FileArr[m.FileNum, 1) TO (m.ToDir + '\' + FileArr[m.FileNum, 1])
ENDFOR
HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform