ティルダが抜けてた
for /f "tokens=*" %%i in ("foo.txt") do echo %~ti