Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Question With A Batch File


  • Please log in to reply
3 replies to this topic

#1 Fredil Yupigo

Fredil Yupigo

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Local time:11:40 AM

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

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:

BC AdBot (Login to Remove)

 


m

#2 M...

M...

  • Members
  • 386 posts
  • OFFLINE
  •  
  • Local time:07:40 AM

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


Edited by M..., 07 February 2008 - 05:19 PM.


#3 Fredil Yupigo

Fredil Yupigo
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Local time:11:40 AM

Posted 07 February 2008 - 05:38 PM

I LOVE YOU!!

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

Thank you SO much! You rock!

#4 Alan-LB

Alan-LB

  • Members
  • 71 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Junee, NSW, Australia
  • Local time:02:40 AM

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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users