>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.