1.

Solve : Way to Tell if Parameters exist or not??

Answer»

Hello All,

I'm trying to create a batch FILE that accepts a parameter
but if the parameter does not exist I want
to echo to the user that they need to provide the
parameter.. Otherwise I want to use the parameter.

Is there a WAY to know if the user has entered a parameter.  

I've tried %1==NUL, %1=="" and NOT EXIST %1 all
to no eval...  
I'm pretty SURE you can do this, but OBVIOUSLY I just don't know how.

Any assistance greatly APPRECIATED.

ThanksIf you use the form:

IF X%1 == X GOTO NOPARM

... it will take the branch if there is no parameter present.

Thanks a bunch..



Discussion

No Comment Found