New
#1
energy-report saving as an xml file.. how to change to html
for some reason my energy-reports are saving as .XML files i want them to open as html. is there a command to get this to change?
for some reason my energy-reports are saving as .XML files i want them to open as html. is there a command to get this to change?
i go into cmd (run as admin) type powercfg -energy it puts the energy report in my temp folder as an xml file
Looks like that applies more to laptops than desktops.
What about not specifying the -xml parameter. It should then create a html file, at least it did for me.
Never mind, I see you said you only used the -energy parameter.
I ran it on my desktop and it created a html file as output, not xml.
This is what the built in help says:
-ENERGY
Analyze the system for common energy-efficiency and battery life
problems. The ENERGY command should be used when the computer is
idle and with no open programs or documents. The ENERGY command
will generate an HTML report file in the current path. The ENERGY
command supports the following optional parameters:
Usage: POWERCFG -ENERGY [-OUTPUT <FILENAME>] [-XML]
[-DURATION <SECONDS>]
POWERCFG -ENERGY -TRACE [-D <FILEPATH>]
[-DURATION <SECONDS>]
-OUTPUT <FILENAME> - Specify the path and filename to store the
energy report HTML file.
-XML - Format the report file as XML.
-TRACE - Record system behavior and do not perform
analysis. Trace files will be generated in
the current path unless the -D parameter
is specified.
-D <FILEPATH> - Specify the directory to store trace data.
May only be used with the -TRACE parameter.
-DURATION <SECONDS> - Specify the number of seconds to observe
system behavior. Default is 60 seconds.
im not sure what u mean by that. Is what i am typing specifiying an xml parameter? What should i type into the cmd?
Try using the -output parameter to specify the file-name with an html extension.
You should change F:EnergyRpt.html in this example to where you want the file.
i.e. powercfg -energy -output F:EnergyRpt.html
Last edited by DavidE; 05 Apr 2012 at 07:31.