For count-1, if count=%count%-1, then it is 10-1
1: What is the difference between global and local for the environment variables defined by set?
2: Can the environment variable string contain any symbols?
set %count%=count-1 is set 10=count-1
Here, is 10 a variable? The result of echo %10% is echo 0. I don't understand 0 here.....
Note:
Display, set, or delete environment variables. If there are no parameters, the set command will display the current environment settings.
Syntax
set ] ] string]
Parameters
/a
Set string to an evaluable numeric expression.
/p
Set the value of variable to an input line.
variable
Specifies the variable to be set or modified.
string
Specifies the string to be associated with the specified variable.
/?
Displays help at the command prompt.
1: What is the difference between global and local for the environment variables defined by set?
2: Can the environment variable string contain any symbols?
set %count%=count-1 is set 10=count-1
Here, is 10 a variable? The result of echo %10% is echo 0. I don't understand 0 here.....
Note:
Display, set, or delete environment variables. If there are no parameters, the set command will display the current environment settings.
Syntax
set ] ] string]
Parameters
/a
Set string to an evaluable numeric expression.
/p
Set the value of variable to an input line.
variable
Specifies the variable to be set or modified.
string
Specifies the string to be associated with the specified variable.
/?
Displays help at the command prompt.
狐狸喜欢狡猾。。
