echo text with preceding spaces but without new line and without requesting user input
I’ve created a batch file with the following content:
@echo off
ECHO -^> A
<NUL SET/P =" -> A "
ECHO B
When it is executed, I get the follwing result.
C:Sample>echoTest.bat
-> A
-> A B
but what I really want is the following with space in front of -> A B
.
C:Sample>echoTest.bat
-> A
-> A B
How would I rewrite my batch file to do so without using requesting user input through STDIN.
I checked this page (echo text with preceding spaces but without new line) but I believe this requests user input.