Quote:

Also, it seems that if the string is wider than the CMD window in windows, the string starts to write over itself....



Not really.
See SetOption() in the manual and specifically WrapAtEOL.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.