Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files to another directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01642909
Message ID:
01643035
Vues:
47
>>SORRY
>>
>>Sorry I forgot to say that the files in the attach directory will all have different names
>>
>>But each day (or each time my code is run) one of them is moved to the attachxls directory with a name of attach.xslx for further processing
>
>
>lcFileName = SYS(2000,"c:\citisprint\sttach\*.*")
>
>TRY
>  ** Trying to erase c:\citisprint\attachxls\attach.xslx
>  ERASE ("c:\citisprint\attachxls\attach.xslx")
>CATCH
>ENDTRY
>
>RENAME ("c:\citisprint\attach\"+lcFileName) TO ("c:\citisprint\attachxls\attach.xslx")
>** Process c:\citisprint\attachxls\attach.xslx here
>
Its working now thanks
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform