Okay, so I\'m trying to make a program that \"understands\" user input and does what they tell it to do. People usually just use specific commands such as \"open this file\" and
Add setLocal enableDelayedExpansion to the start of your script.
setLocal enableDelayedExpansion
Then replace echo %word%var%% with echo !word%var%!.
echo %word%var%%
echo !word%var%!
For more information - http://ss64.com/nt/delayedexpansion.html