>>>>I am using this commands
>>>>
>>>>
>>>>Select New_bills
>>>>lcStr = Filetostr(cFullpath)
>>>>? lcStr
>>>>Strtofile(lcStr, cNewpath, .F.)
>>>>Strtofile(lcStr, "D\Allfiles", .F.)
>>>>
>>>>
>>>>Both the above strtofile does not copy the file to the desired location ile cNewpath.
>>>>
>>>>What wrong I am doing.
>>>>
>>>>Regards
>>>>Harsh
>>>
>>>What do you have in cNewPath variable?
>>>
>>>For the second, try
>>>
>>>strtofile(m.lcStr, "d:\AllFiles\test.txt", .f.)
>>
>>
>>No still not working....
>>I have D:\Allfiles in cNewpath
>>
>>This is also not working
>>strtofile(m.lcStr, "d:\AllFiles\1234567891.ps", .f.)
>
>Do you have d:\AllFiles path locally?
>
>Try some other path for your tests, say, c:\Test and make sure that the directory exists and you have rights to write into it.
Yes I tried but still Not worked
I have a Table New_bills
cFullpath value in Table is D:\YML_OCT17\445001\1009028966.ps
nNewpath=D:\ALLFILES\
and using this code, but not working
Select New_bills
lcStr = Filetostr(cFullpath)
? lcStr
Strtofile(lcStr, cNewpath, .F.)
Strtofile(lcStr, "D\Allfiles", .F.)
It is processing but dont know where it is copying my files or even copying or not
Harsh