Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files to another directory
Message
De
09/11/2016 16:17:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/11/2016 10:46:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01642909
Message ID:
01643007
Vues:
39
>>SET DEFAULT TO c:\citisprint\attach
>>
>>lcFileName = SYS(2000,"c:\citisprint\sttach\*.*")
>>DO WHILE NOT EMPTY(lcFileName)
>> RENAME (lcFileName) TO ("c:\citisprint\attachxls\"+lcFileName) && Be careful, this will MOVE file not just copy
>> lcFileName = SYS(2000,"c:\citisprint\attach\*.*",1)
>>ENDDO
>
>The files must be on the same drive for this code to work. If they are on separate drives, you must first copy the files, make sure that they are actually copied and then delete the old ones.

Not required to be on the same drive. I use the same syntax for years to move files from my camera's SD card (usually appears as K: disk or some such letter) to a set of folders (by year and date) on my Q: drive, no problem at all.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform