I would like to access the updated environment variable in 2nd Batch file, which is changing continuously using 1st batch file.
The e.var changing continuously using 1st batch file but I am getting only one value assigned to the E.variable after starting 2nd batch file.
1st batch file:
:start setx ev=%random% sleep 5s goto start:
2nd batch file:
:start echo %ev% sleep 10s goto start: