The SET command assigns a value to a variable. Personally, I’d like the option to require a variable is declared before it’s used, as this catches The value of undeclared/uninitialized variables is an empty string, or ''.
Variable DeclarationĭOS does not require declaration of variables. So it will help to be able to understand a variable and how it’s being used. The syntax for variables can be a bit odd,
Today we’ll cover variables, which are going to be necessary in any non-trivial batch programs.