生成html文件1

  1. @echo off
  2. set p=%date:~0,4%%date:~5,2%%time:~0,2%%time:~3,2%%time:~6,2%.html
  3. echo ^<html^> >p:\%p%
  4. echo ^<table border="1"^> >>p:\%p%
  5. echo ^<tr^> >>p:\%p%
  6. echo ^<th^>month ^</th^> >>p:\%p%
  7. echo ^<th^>saving ^</th^> >>p:\%p%
  8. echo ^</tr^> >>p:\%p%
  9. set n=0
  10. for /r .  %%i in (*) do (
  11. set n=%n%+1
  12. echo ^<tr^> >>p:\%p%
  13. echo ^<th^> %n% ^</th^> >>p:\%p%
  14. echo ^<th^> %%i ^</th^> >>p:\%p%
  15. echo ^</tr^> >>p:\%p%
  16. )
  17. echo ^</html^> >>p:\%p%
  18. pause

 

你可能感兴趣的:(html,职场,休闲)