So I wanted to have plaintext comments in my bat file with useage information at the top by skipping the text using goto but wanted to display the text as help info if say /? switch was used..
I managed to get the text to display with this method
@echo off
goto start
:help
some
text
here not commands
@echo off
goto:eof
:start
echo on && prompt $h && call :help 2>nul
which displays this:
some
text
here not commands
Does anyone know a way to remove the blank lines?