@echo off

set p=%date:~0,4%%date:~5,2%%time:~0,2%%time:~3,2%%time:~6,2%.html

echo ^<html^> >p:\%p%

echo ^<table border=”1″^> >>p:\%p%

echo ^<tr^> >>p:\%p%

echo ^<th^>month ^</th^> >>p:\%p%

echo ^<th^>saving ^</th^> >>p:\%p%

echo ^</tr^> >>p:\%p%

set n=0

for /r .  %%i in (*) do (

set n=%n%+1

echo ^<tr^> >>p:\%p%

echo ^<th^> %n% ^</th^> >>p:\%p%

echo ^<th^> %%i ^</th^> >>p:\%p%

echo ^</tr^> >>p:\%p%

)

echo ^</html^> >>p:\%p%

pause