I have a variable in my batch file and it contains the pipe symbol (this one: |) so when I echo the variable I get an error about a unrecognized internal/external command.
I need a way to either get it to echo it correctly or better yet remove everything after and including the | symbol as well as any extra spaces before it.