Horje
dos assign carriage return to variable Code Example
dos assign carriage return to variable
setlocal EnableDelayedExpansion
set LF=^


rem TWO empty lines are required
echo This text!LF!uses two lines
dos assign carriage return to variable
(SET LF=^
%=this line is empty=%
)
dos assign carriage return to variable
set LF=^


rem TWO empty lines are required
echo This text^%LF%%LF%uses two lines
echo This also^

uses two lines
dos assign carriage return to variable
if "!LF!" NEQ "!LF:~0,1!" echo Error "Linefeed definition is defect, probably multiple invisble whitespaces at the line end in the definition of LF"

FOR /F "delims=" %%n in ("!LF!") do (
  echo Error "Linefeed definition is defect, probably invisble whitespaces at the line end in the definition of LF"
)
dos assign carriage return to variable
set myLinefeed=^<LF1>
<LF2>
<LF3>




Shell

Related
everytime i open my terminal Command 'ls' is available in '/bin/ls' Code Example everytime i open my terminal Command 'ls' is available in '/bin/ls' Code Example
how iggnor .env change in github branch Code Example how iggnor .env change in github branch Code Example
gitkracken snap Code Example gitkracken snap Code Example
List linux ubuntu binaries folders Code Example List linux ubuntu binaries folders Code Example
Create Flask Virtual Environments Code Example Create Flask Virtual Environments Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10