OK I took a different path and fixed the problem outside VFP.
>I am using a database to to create the text and then I use filetostr() to get the contents. The problem is the tool is leaving CRLFs and the batch file fails unless I strip them out.
>
>>>I have the blow string that I want to save a windows batch file. I can't get it to work gives me an "unrecognized pharse/keyword" error. Any ideas how to fix this?
>>>
>>>Thanks.
>>>
>>>
>>>lcOut='dbsvc -t Network -s Automatic -as -i -sn "SQL Anywhere - wamtest" -y -w "wamtest" "C:\Program Files\SQL Anywhere 11\Bin64\dbsrv11.exe" -x tcpip{port=2938} -n wamtest d:\projects\neiman\wm\data\wam11_dev.db -n wam11_dev d:\projects\neiman\wm\data\consolidated\consolidated.db -n consolidated D:\Projects\realweb\data\realweb11.db'
>>>?STRTOFILE(lcOut,"test.bat")
>>>
>>>
>>
>>I guess the first line is too long, try to split it, or use Text-Endtext to create it.