home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT202.ZIP / LOG.BAT < prev    next >
DOS Batch File  |  1991-01-14  |  998b  |  27 lines

  1. echo off
  2. echo/
  3. echo LOG.BAT - Written by David M. Balmer for the Public Domain.
  4. echo/
  5. if "%1"=="" goto :syntax
  6. stamp \log.log LOG /d /t /cd /cr %1 /cr /cr
  7. rem
  8. rem Add the /s parameter above to tell STAMP not to echo to the screen.
  9. rem
  10. %1
  11. goto :ender
  12. :syntax
  13. echo This batch file is an example of one possible use of the STAMP utility.
  14. echo LOG.BAT takes a given command and logs the date, time, current directory,
  15. echo and the command issued on the file "\log.log".  After logging, the
  16. echo command is then issued normally.
  17. echo/
  18. echo Syntax: LOG command
  19. echo/
  20. echo LOG.BAT was written by David M. Balmer, Jr. and released into the public
  21. echo domain by Solaris Systems.  It requires the program "STAMP" which is
  22. echo copyrighted by Solaris Systems with all rights reserved and released as
  23. echo shareware.  LOG.BAT may be modified but, as a courtesy, please leave the
  24. echo original author's name and this information, add your name and what you
  25. echo changed.
  26. echo/
  27. :ender