How to get the env value that itself is a variable?

Viewed 49

Suppose I have env variables in windows:

IA=C:\a
IB=C:\b

now I write a batch script:(named s.bat)

@echo off
set var=%1
echo %var%

When I run s.bat IA,the result is IA , but I actually want the result to be C:\a. How can I achieve this requirement?

1 Answers
Related