Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files to another directory
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01642909
Message ID:
01642980
Views:
37
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform