I read in the file repos.txt by the script:
@echo off
for /F %%s in (%~dp0repos.txt) do (
echo %%s
)
The file repos.txt contains the lines:
%UserProfile%\Documents\Repository\A
%UserProfile%\Documents\Repository\B
The echo command gives me the directories without evaluating the environment variable %UserProfile%. This is a problem when I would like to use it with git.
How can I evaluate the environment variable?
I tried setlocal like done here and the surrounding with exclamation marks. Unfortunately, nothing gives the correct output.