ECHO > without "

R

Rich Pasco

Is it possible to ECHO a greater-than sign without getting quotes
around the result?

For example,
Echo A>B
puts the letter "A" into a file named "B" which is not what I want, but
Echo "A>B"
diplays the string
"A>B"
complete with the quote marks. I just want to display
A>B
exactlu as shown. Any ideas?

- Rich
 
T

Torgeir Bakken (MVP)

Rich said:
Is it possible to ECHO a greater-than sign without getting quotes
around the result?

For example,
Echo A>B
puts the letter "A" into a file named "B" which is not what I want, but
Echo "A>B"
diplays the string
"A>B"
complete with the quote marks. I just want to display
A>B
exactlu as shown. Any ideas?

Hi

C:\>echo A^>B
A>B


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx
 
R

Rich Pasco

Torgeir said:
Hi

C:\>echo A^>B
A>B

Perfect! Thank you very much.

For future reference, other than asking here, how could I have found
this out? Is it documented in the Windows 2000 help files? If so,
where?

- Rich
 
P

Phil Robyn

Rich said:
Torgeir Bakken (MVP) wrote:




Perfect! Thank you very much.

For future reference, other than asking here, how could I have found
this out? Is it documented in the Windows 2000 help files? If so,
where?

- Rich

start hh.exe ms-its:%WINDIR%\Help\windows.chm::/ntcmds.htm

click on "What's new or different from MS-DOS"

You will see

^ Escape character. Allows typing command symbols as text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top