Is there an equivalent source command in Windows CMD as in bash or tcsh?
Following example will help you to solve your problem.
env.bat
This file is for setting variables. Its contents are given blow.
set name="test3"
test.bat
Our main batch file.
call env.batcall print.batpause
Now print.bat
batch file to print variables. Its contents given below
echo %name%