PC Review


Reply
Thread Tools Rate Thread

differences between : 'echo toto' and 'echo/toto'

 
 
Jonathan
Guest
Posts: n/a
 
      17th Jan 2005
Hi,

What is the difference between these two lines :

:::::::::::::::::::::::::::::::::::::
c:\>echo toto
toto

c:\>
:::::::::::::::::::::::::::::::::::::

AND

:::::::::::::::::::::::::::::::::::::
c:\>echo/toto
toto

c:\>
:::::::::::::::::::::::::::::::::::::

What is the signification of slash character in the second example ?
The result is the same..... I don't understand....
A lot of scripts used it !
What does it mean ?

thx for all

J.
 
Reply With Quote
 
 
 
 
Matthias Tacke
Guest
Posts: n/a
 
      17th Jan 2005
Jonathan wrote:

> What is the signification of slash character in the second example ?
> The result is the same..... I don't understand....
> A lot of scripts used it !
> What does it mean ?
>

Both are valid delimiters. The space is problematic in cases you only
echo a probaply empty variable. In that case echo would result in
echo status being reported instead of an empty line.

There are other valid delimiters like .:\ but among them the slash
is one of the faster.

HTH

--
Gruesse Greetings Saludos Saluti Salutations
Matthias
---------+---------+---------+---------+---------+---------+---------+
 
Reply With Quote
 
Jonathan
Guest
Posts: n/a
 
      17th Jan 2005
Matthias Tacke a écrit :
> Both are valid delimiters. The space is problematic in cases you only
> echo a probaply empty variable. In that case echo would result in
> echo status being reported instead of an empty line.
>
> There are other valid delimiters like .:\ but among them the slash
> is one of the faster.


Thanx a lot for yours explanations.
It's just for batch files. On the cmdline, it's not the same thing.

I will sleep less stupid this evening

J.
 
Reply With Quote
 
Al Dunbar [MS-MVP]
Guest
Posts: n/a
 
      18th Jan 2005

"Jonathan" <(E-Mail Removed)> wrote in message
news:41ec2748$0$6434$(E-Mail Removed)...
> Matthias Tacke a écrit :
> > Both are valid delimiters. The space is problematic in cases you only
> > echo a probaply empty variable. In that case echo would result in
> > echo status being reported instead of an empty line.
> >
> > There are other valid delimiters like .:\ but among them the slash
> > is one of the faster.

>
> Thanx a lot for yours explanations.
> It's just for batch files. On the cmdline, it's not the same thing.


ECHO doesn't work *exactly* the same on the cmdline, however, I always use
the "/" for all ECHO output, and this command:

echo/

works exactly the same in a batch file as on the cmdline, namely to print a
blank line.

More apropos here is the fact that, at the cmdline, there are very few
reasons to use the ECHO command.

> I will sleep less stupid this evening


Sweet dreams!

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
address in the CC field copies toTo Field heidi Microsoft Outlook Discussion 4 29th Dec 2007 01:34 PM
NF325-A7 Sound problem: sounds like an echo ,,echo...echo makes me crazy...crazy...crazy...help...help...help David Sontag DIY PC 17 30th Nov 2007 06:45 AM
Echo multiple messages separated by new line thorugh "echo" command Vijay Jain Windows XP General 1 12th Dec 2006 09:11 PM
applicaton.echo / docmd.echo screen still pulsing - Why? Rick A Microsoft Access Form Coding 1 30th Mar 2006 04:01 AM
Application.Echo or DoCmd.Echo in a Runtime Database =?Utf-8?B?cmJt?= Microsoft Access Form Coding 1 23rd Jan 2004 02:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 PM.