Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Documentation @INC

Aug
1,914
68
In the Help file for @INC...

Should
Code:
set start=5
set result=%inc[start]
echo %result

not be this;
Code:
set start=5
set result=%@inc[start]
echo %result

Seems to be missing an @

Joe
 
I think it should really be
Code:
set result=%@inc[%start]
It looks like it's missing a % as well as an @.
 
Well, according to the line;
Code:
If string is the name of an environment variable, its value is used whether or not it is preceded by a percent mark % without modifying the value of the variable. To actually increment the value of the variable var use

I think it should be just start , not %start.

Joe
 
Well, according to the line;
Code:
If string is the name of an environment variable, its value is used whether or not it is preceded by a percent mark % without modifying the value of the variable. To actually increment the value of the variable var use

I think it should be just start , not %start.

Joe
Either works.
 
Back
Top