does the path exist (note the leading backslash)? Do you have create rights on the folder?
>I want to create a table with a date-stamp name. I tried the following code and I keep getting a "Cannot create file error". Can anyone help me? (I'm using VFP7)
>
>pay_dbf="\data\PR"+RIGHT(DTOS(Date()),6)+".dbf"
>
>Copy file payroll to &pay_dbf
>
>Thanks in Advance
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer