Echo constants in batch scripts without quotes

Systems Administration Windows

Somewhat based on this Stack Overflow post, I wanted to simplify the code to echo a constrant string without the quotation marks to the console in a Windows batch script., Here’s the script to output the obligatory, “Hello world!” text

@echo OFF
SET variable="Hello World!"
ECHO %variable:"=%
```With the following output```
Hello World!

Comments:

Seb - Oct 1, 2018

Does not work for me .. with < in the variable value !!! Great windows!