>>>That's another story, since in your sample you try assign the string to the variable in one line. If you have a string with CRLF's in it, you can use this code to save it
>>>strtofile(lcOut, chr(13)+chr(10),'')
>>
>>You meant
>>
strtofile(chrtran(lcOut, chr(13)+chr(10),''), "test.bat")
>>Seriously reconsider Lutz's advice about that beer :).
>>
>>I know the feeling. Yesterday I took a nap and, as usual, during those 15 minute naps weird dreams come. I saw command window and what I was typing, and every couple of lines I'd make some mistake like that, got deurinated at myself, and decided I need some sleep, so I went to do so. In that sleep within the sleep I dreamed nothing, and woke up (from both, nothing left on the stack) quite rested :).
>
>Right! Thank God it's Friday tomorrow. :-)
Better forget tomorrow:
1) Black Friday
2) Friday 13th April
stay in bed or in the pool, up to you but dont tough your keyboard!
Regards,
Koen