deleyd
asked on
Extracting the last two digits of a number
set x=1234
@echo x=%x%
set result=%x:~-2%
My result is:set x=1234
x=1234
set result=
and my result is blank.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you post the actual script where that code is executing, maybe we can spot something that could cause a problem.
~bp
~bp
ASKER
I think it's actually a problem with my command prompt program.
ASKER