Here's the code:
Works fine if variables whose names begin with "DS_" exist, produces "TCC: Z:\TestVars.btm [11] Not in environment "DS_*"" if not. While I will fully admit that this is not a serious problem, I really don't like to write batch files (or programs of any nature, for that matter) that produce error messages in "normal", totally "expected" circumstances.
So the question is simple: is there any way I can determine if any variables whose names begin with "DS_" exist before executing the loop?
- Dan
Code:
Do VarA In /P (Set DS_*) (
DoSomeThingWithThatVariable %VarA
)
So the question is simple: is there any way I can determine if any variables whose names begin with "DS_" exist before executing the loop?
- Dan