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:
01642982
Views:
31
>>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
>
Will try this tomorrow morning - thanks again for help
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform