Solved

DOS Echo a Bar Character

Posted on 2004-10-19
1
278 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

12 Experts available now in Live!

Get 1:1 Help Now