Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files to another directory
Message
De
09/11/2016 16:44:21
 
 
À
09/11/2016 16:17:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01642909
Message ID:
01643012
Vues:
34
>>>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.

Now that you say it.... Funny how one forgets things.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform