Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't save string as file
Message
From
12/04/2012 16:36:26
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
12/04/2012 16:32:01
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01541276
Message ID:
01541286
Views:
49
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform