Solved

DOS Echo a Bar Character

Posted on 2004-10-19
1
279 Views
Last Modified: 2012-06-27
The following statement does not work because the bar character "|" is a special character, but I need the bar character to display in my output.  How can I do this?

echo Prompt1=%currentDate%|%currentDate%>>hnb_daily_reprunner_master.ini
0
Comment
Question by:jasonboetcher
1 Comment
 
LVL 30

Accepted Solution

by:
SteveGTR earned 500 total points
ID: 12346868
Escape it with a caret:

echo Prompt1=%currentDate%^|%currentDate%>>hnb_daily_reprunner_master.ini

Good Luck,
Steve
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to delete all files and folders from a dir MS DOS 3 64
Data copy batch script 21 57
Batch: check service status 11 87
How to copu batch file to a network location 62 77
One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now