Explain how dos-batch newline variable hack works
Can someone please explain how this works?

    @echo off
    REM Creating a Newline variable (the two blank lines are required!)
    set NLM=^
    
    
    set NL=^^^%NLM%%NLM%^%NLM%%NLM%
    REM Example Usage:
    echo There should be a newline%NL%inserted here.

emits:

    There should be a newline
    inserted here.
    

  

*from http://stackoverflow.com/questions/132799/how-can-you-echo-a-newline-in-batch-files/269819#269819*

Explain how dos-batch newline variable hack works
===

Can someone please explain how this works?

    @echo off
    REM Creating a Newline variable (the two blank lines are required!)
    set NLM=^
    
    
    set NL=^^^%NLM%%NLM%^%NLM%%NLM%
    REM Example Usage:
    echo There should be a newline%NL%inserted here.

emits:

    There should be a newline
    inserted here.
    

  

*from http://stackoverflow.com/questions/132799/how-can-you-echo-a-newline-in-batch-files/269819#269819*
