BleepingComputer.com: Question With A Batch File

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question With A Batch File Want to echo a > character

#1 User is offline   Fredil Yupigo 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 34
  • Joined: 03-May 07

Posted 06 February 2008 - 08:58 PM

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 :thumbsup:

#2 User is offline   M... 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 362
  • Joined: 02-June 07

Posted 07 February 2008 - 04:44 PM

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 (^^)."

This post has been edited by M...: 07 February 2008 - 05:19 PM


#3 User is offline   Fredil Yupigo 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 34
  • Joined: 03-May 07

Posted 07 February 2008 - 05:38 PM

I LOVE YOU!!

:inlove: :trumpet: :thumbsup: :flowers:

Thank you SO much! You rock!

#4 User is offline   Alan-LB 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 71
  • Joined: 15-January 06
  • Gender:Male
  • Location:Junee, NSW, Australia

Posted 14 February 2008 - 12:21 AM

WOW - romance at last!!!! Go for it children!!!!


Alan
There are 10 types of people - those who understand binary and those who don't!!

Today is the Beta version of Tomorrow!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users