This bat works fine:
for /f "tokens=* skip=1" %%i in (
'wmic logicaldisk where mediatype^=12 get name^, freespace^, size'
) do (
echo %%i >> "C:\HDD.txt"
But when I enable the delayed expansion, in the same bat shows me the next error:
'wmic' is not recognized as an internal or external command, operable program or batch file.
Do you know what is the possible mistake?
Thanks in advanced.