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:
01642980
Vues:
38
>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
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform