The minimum maximum row string length is 8191 bytes!
This means that the string can be 8191 bytes in any case, but it is also possible to create legitimate periodic strings with almost unlimited length.
Examples
echo Longline with 8191 characters......... set "var=a" echo UltraLongLine %var:4000chars=% %var:4000chars=% %var:4000chars=% %var:4000chars=% echo Test <8000Chars <8000chars <8000chars .... <nul
The point here is that all lines are less than 8192 bytes after parsing
source share