View Full Version : Echo IF statement


JC
02-05-2004, 08:54 PM
Here is a snippet I need to Echo,

>>C:\TEMP.VBS ECHO If iRC <> 0 Then

The problem is it is running it as an if/then statement, any ideas around
this, thanks!!

Phil Robyn [MVP]
02-05-2004, 09:11 PM
JC wrote:

> Here is a snippet I need to Echo,
>
>
>>>C:\TEMP.VBS ECHO If iRC <> 0 Then
>
>
> The problem is it is running it as an if/then statement, any ideas around
> this, thanks!!
>
>

To what does the first 'it' refer?

Remember, the caret '^' is your friend. :-)

>>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

Phil Robyn [MVP]
02-05-2004, 09:11 PM
JC wrote:

> Here is a snippet I need to Echo,
>
>
>>>C:\TEMP.VBS ECHO If iRC <> 0 Then
>
>
> The problem is it is running it as an if/then statement, any ideas around
> this, thanks!!
>
>

To what does the first 'it' refer?

Remember, the caret '^' is your friend. :-)

>>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

JC
02-05-2004, 09:49 PM
I just need it to echo the 'If iRC <> 0 Then' exactly the way it looks, what
I do is echo these comands out to a VBS then execute the VBS file.

Thanks!


"Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
> JC wrote:
>
> > Here is a snippet I need to Echo,
> >
> >
> >>>C:\TEMP.VBS ECHO If iRC <> 0 Then
> >
> >
> > The problem is it is running it as an if/then statement, any ideas
around
> > this, thanks!!
> >
> >
>
> To what does the first 'it' refer?
>
> Remember, the caret '^' is your friend. :-)
>
> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>
> --
> Phil Robyn
> Univ. of California, Berkeley
>
> u n z i p m y a d d r e s s t o s e n d e - m a i l

JC
02-05-2004, 09:49 PM
I just need it to echo the 'If iRC <> 0 Then' exactly the way it looks, what
I do is echo these comands out to a VBS then execute the VBS file.

Thanks!


"Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
> JC wrote:
>
> > Here is a snippet I need to Echo,
> >
> >
> >>>C:\TEMP.VBS ECHO If iRC <> 0 Then
> >
> >
> > The problem is it is running it as an if/then statement, any ideas
around
> > this, thanks!!
> >
> >
>
> To what does the first 'it' refer?
>
> Remember, the caret '^' is your friend. :-)
>
> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>
> --
> Phil Robyn
> Univ. of California, Berkeley
>
> u n z i p m y a d d r e s s t o s e n d e - m a i l

JC
02-05-2004, 09:53 PM
That was it, thank you so much, what does the '<' or '>' do?


"Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
> JC wrote:
>
> > Here is a snippet I need to Echo,
> >
> >
> >>>C:\TEMP.VBS ECHO If iRC <> 0 Then
> >
> >
> > The problem is it is running it as an if/then statement, any ideas
around
> > this, thanks!!
> >
> >
>
> To what does the first 'it' refer?
>
> Remember, the caret '^' is your friend. :-)
>
> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>
> --
> Phil Robyn
> Univ. of California, Berkeley
>
> u n z i p m y a d d r e s s t o s e n d e - m a i l

JC
02-05-2004, 09:53 PM
That was it, thank you so much, what does the '<' or '>' do?


"Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
> JC wrote:
>
> > Here is a snippet I need to Echo,
> >
> >
> >>>C:\TEMP.VBS ECHO If iRC <> 0 Then
> >
> >
> > The problem is it is running it as an if/then statement, any ideas
around
> > this, thanks!!
> >
> >
>
> To what does the first 'it' refer?
>
> Remember, the caret '^' is your friend. :-)
>
> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>
> --
> Phil Robyn
> Univ. of California, Berkeley
>
> u n z i p m y a d d r e s s t o s e n d e - m a i l

Phil Robyn [MVP]
02-05-2004, 10:10 PM
JC wrote:

> That was it, thank you so much, what does the '<' or '>' do?

What does '<>' do in VBS? Or what do '<' and '>' do in CMD?

(That's a lot of 'do do' ;-))

>
>
> "Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
> news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
>
>>JC wrote:
>>
>>
>>>Here is a snippet I need to Echo,
>>>
>>>
>>>
>>>>>C:\TEMP.VBS ECHO If iRC <> 0 Then
>>>
>>>
>>>The problem is it is running it as an if/then statement, any ideas
>
> around
>
>>>this, thanks!!
>>>
>>>
>>
>>To what does the first 'it' refer?
>>
>>Remember, the caret '^' is your friend. :-)
>>
>> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>>
>>--
>>Phil Robyn
>>Univ. of California, Berkeley
>>
>>u n z i p m y a d d r e s s t o s e n d e - m a i l
>
>
>


--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

Phil Robyn [MVP]
02-05-2004, 10:10 PM
JC wrote:

> That was it, thank you so much, what does the '<' or '>' do?

What does '<>' do in VBS? Or what do '<' and '>' do in CMD?

(That's a lot of 'do do' ;-))

>
>
> "Phil Robyn [MVP]" <zipprobyn@berkeley.edu> wrote in message
> news:evm3JyC7DHA.1852@TK2MSFTNGP10.phx.gbl...
>
>>JC wrote:
>>
>>
>>>Here is a snippet I need to Echo,
>>>
>>>
>>>
>>>>>C:\TEMP.VBS ECHO If iRC <> 0 Then
>>>
>>>
>>>The problem is it is running it as an if/then statement, any ideas
>
> around
>
>>>this, thanks!!
>>>
>>>
>>
>>To what does the first 'it' refer?
>>
>>Remember, the caret '^' is your friend. :-)
>>
>> >>C:\TEMP.VBS ECHO If iRC ^<^> 0 Then
>>
>>--
>>Phil Robyn
>>Univ. of California, Berkeley
>>
>>u n z i p m y a d d r e s s t o s e n d e - m a i l
>
>
>


--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l