Help - Search - Members - Calendar
Full Version: Question With A Batch File
BleepingComputer.com > Software > Programming
   
Fredil Yupigo
Is it possible? I want to have a batch file echo the > character on a line, producing some output like this

QUOTE
asdf>asdf>asdf>asdf

However that's impossible because > is a command to write text to a file.

Wrapping the whole echo command in quotes makes it work, but unfortunately it echoes the quotes.

Any way to have the > appear? Thanks thumbup.gif
M...
http://technet.microsoft.com/en-us/library/bb490897.aspx

"To display a pipe (|) or redirection character (< or >) when you are using echo, use a caret character immediately before the pipe or redirection character (for example, ^>, ^<, or ^| ). If you need to use the caret character (^), type two (^^)."
Fredil Yupigo
I LOVE YOU!!

wub.gif heart.gif heart.gif specool.gif

Thank you SO much! You rock!
Alan-LB
WOW - romance at last!!!! Go for it children!!!!


Alan
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.