Escape vertical bar | in batch script (.bat) 18 Nov 2026 Error : @echo off echo hello | world pause Success : @echo off echo hello ^| world pause The ^ is necessary because batch scripts treat | like pipes regardless of context