Logical OR and logical and

July 13, 2009 at 14:27:58
Specs: Windows XP
Hi Team,

I would like to know if we have something in batch scripting techniques to check for all the parameters are null at one stretch..

A, B, C, D and E are parameters and Currently, i am checking the null condition for every parameters separately and i want to club all in one..

Also, do we require two goto statements fror every if condition..

IF %A% == "" goto ERROR
goto EXE
IF %B% == "" goto ERROR
goto EXE
IF %C% == "" goto ERROR
goto EXE
IF %D% == "" goto ERROR
goto EXE
IF %E% == "" goto ERROR
goto EXE

Please correct and help me

Many thanks in advance..


See More: Logical OR and logical and

Report •


#1
July 13, 2009 at 15:35:06
listen to your instructor and learn from him and quit trying to shortcut the learning process. We do not help students do their homework!

Report •

#2
July 13, 2009 at 16:06:07
but i am not a student.. a professional new to the windows batch scripts.. i had been working in unix and linux machines, but not familiar with windows batch scripts..

Report •

Related Solutions


Ask Question