Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STRTOFILE Function Not working
Message
From
31/10/2017 16:28:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655311
Message ID:
01655318
Views:
46
Thanks It worked...I was doing a silly mistake by not taking the cNewpath with the file Name as you directed.

Thanks


>>>>I am using this commands
>>>>
>>>>
>>>>Select New_bills
>>>>lcStr = Filetostr(cFullpath) 
>>>>? lcStr && Displays the File Contents well on screen
>>>>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.
Harsh
Previous
Reply
Map
View

Click here to load this message in the networking platform