energy-report saving as an xml file.. how to change to html


  1. Posts : 71
    Windows 7 Ultimate 64bit
       #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?
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    How do you create the energy report?
      My Computer


  3. Posts : 71
    Windows 7 Ultimate 64bit
    Thread Starter
       #3

    i go into cmd (run as admin) type powercfg -energy it puts the energy report in my temp folder as an xml file
      My Computer


  4. Posts : 6,285
    Windows 10 Pro X64
       #4

    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.
      My Computer


  5. Posts : 71
    Windows 7 Ultimate 64bit
    Thread Starter
       #5

    im not sure what u mean by that. Is what i am typing specifiying an xml parameter? What should i type into the cmd?
      My Computer


  6. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #6

    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.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:34.
Find Us