"Tigran K" <[EMAIL PROTECTED]> wrote on 05/08/2008 01:09:30 PM:

> You're gonna have to nest the if statements. Or use vbscript.

Ratz. Oh, well - it's only 3 conditions; not worth the trouble to re-write 
the rest into vbscript.

Thanks!

> 
> --Tigran
> 
> On Thu, May 8, 2008 at 10:01 AM,  <[EMAIL PROTECTED]> wrote:
> >
> > I need to write a Win2003 shell script that does this:
> >
> > IF (Var=A) or (VAR=B) THEN
> >         DO this command
> > ELSE
> >         DO that command
> > END
> >
> > I can't seem to figure out how to tell the shell to only do "this 
command"
> > if Var is one of those 2 values.
> >
> > A CASE statement would work, but the shell doesn't seem to know about 
case
> > statements..
> >
> > I've googled around, and can't seem to find out what I need to do. I 
might
> > be able to next IF statements, but that's a bit *too* ugly.
> >
> > Anyone?
> >
> >
> > --
> >  Michael Leone
> >  Network Administrator, ISM
> >  Philadelphia Housing Authority
> >  2500 Jackson St
> >  Philadelphia, PA 19145
> >  Tel:  215-684-4180
> >  Cell: 215-252-0143
> >  <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> 
> 
> 
> -- 
> Tigran
> 
> ~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
> ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to