Computing.Net > Forums > Programming > How to display & in ECHO (batch)?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to display & in ECHO (batch)?

Reply to Message Icon

Name: Osman34
Date: November 16, 2007 at 06:18:31 Pacific
OS: XP
CPU/Ram: P4
Product: Home
Comment:

Hello,

I want to display & character in ECHO.
I know & has special meaning in a batch file. As I know, it is possible to display such special characters by adding ' or \ before or after the character. How can I do this?

Thank you.




Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: November 16, 2007 at 06:28:51 Pacific
Reply:

you have to prefix the & or any special symbol with the caret (^), i.e.

Echo You ^& me


0

Response Number 2
Name: Osman34
Date: November 17, 2007 at 06:42:40 Pacific
Reply:

Dear IVO,

It is just one ^ character but it means world to me. Thank you so much.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


modify nslookup script to... Bat run comnd once then n...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to display & in ECHO (batch)?

How to display CallerID in HyperTer www.computing.net/answers/programming/how-to-display-callerid-in-hyperter/13875.html

how to write trees in VB www.computing.net/answers/programming/how-to-write-trees-in-vb/12216.html

How to seach *.mp3 etc using batch www.computing.net/answers/programming/how-to-seach-mp3-etc-using-batch/15950.html