Suppose there's a text file:

```
abc %x%
def %y%

```

and a batch file:

```
setlocal
set x=123
set y=456
for /f %%i in (textfile.txt) do echo %%i

```

The output will be 

```
abc %x%
def %y%

```

Is there any (simple) way to get this (without powershell or special executables)?

```
abc 123
def 456

```