write a | (pipe symbol) into a txt file using batch script.

Discussion in 'Software' started by padmajeet, May 17, 2012.

  1. padmajeet

    padmajeet Private E-2

    Hi,
    I want to write a | (pipe symbol) into a txt file using batch script.

    e.g. |BEGIN|NAME|
     
  2. _nullptr

    _nullptr Major Geeky Geek Geek

    Use the caret ^ to escape the pipe symbol.
    Code:
    echo ^|BEGIN^|NAME^|>C:\log.txt
    
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds