Redirection to a text file fails in Windows 8 - see the batch file snippet below. list.txt becomes a zero byte file.@echo off> script.tmp echo list disk>> script.tmp echo exitdiskpart /s "%cd%\script.tmp" >"list.txt"del script.tmpAdditionally: diskpart does not use the current directory and the %CD% is required for it to find the script file.
↧