CLI perl client using a BAT file : i can't find how to make a multi-line ticket

Hello and thank you for your time,

I’m currently looking how to make a bat file generating a multi-line ticket using the CLI perl client

actually my BAT file look like that :

cd C:\Users\MikoMob\Desktop\rt-client-cli-master\script
set LINES=100
set COLUMNS=80
setlocal EnableDelayedExpansion
SET TXT=Line 1^
Line 2^
Line 3
perl rt create -t ticket set subject=“test sujet” Queue=LogmisN1 priority=100 text="%TXT%"

i tried various syntaxes including the use of !\r\n and can’t manage to make it work, it alway return me a single line “Line 1 Line 2 Line 3”

Is there a char that can be used as line return in text var ?

Thanks again !

i’ve found the solution :

@ECHO OFF
set LINES=100
set COLUMNS=80
setlocal EnableDelayedExpansion
SET TXT=Line 1^

Line 2^

Line 3
perl rt create -t ticket set subject=“test sujet” Queue=LogmisN1 priority=100 text="!TXT!"

do not forget to escape special characters and it works fine (https://www.robvanderwoude.com/escapechars.php)