Windows 7 Energy Report Batch File

Discussion in 'Programming and Scripting' started by Warsick, Mar 22, 2010.

  1. Warsick

    Warsick New Member

    Joined:
    Jan 12, 2010
    Messages:
    12
    Likes Received:
    1
    So recently I stumbled across the feature to view my energy report via cmd prompt and the following input
    Code:
    powercfg -energy -output "f:\Energy Report\energy-report.html"
    I'm trying to create an autorun program on my flash drive where the command automatically runs and saves a log onto my flash drive.
    So far I've gotten up to the point where the file is saved onto my flash drive but I have to initiate the batch file.
    I'm also trying to save the file name as a date (dd/mm/yyyy), so I can review the status over a period of days. I've tried multiple solutions and I've gotten where I can have the date displayed as yyyyddmm. Anyone know a better way to produce this code?

    In total this is what I've got.

    Code:
    @echo off
    title Energy Report
    powercfg -energy -output "f:\Energy Report\energy-report.html"
    pause
    
     
  2. jenniferthomos2

    Joined:
    Apr 6, 2010
    Messages:
    2
    Likes Received:
    0

Share This Page

Loading...