Redirigir la salida del archivo por lotes
@echo off
echo "All output (stdout and stderror) will be redirected to output.txt"
powercfg /a > output.txt 2>&1
Brent Bowers
@echo off
echo "All output (stdout and stderror) will be redirected to output.txt"
powercfg /a > output.txt 2>&1