home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT202.ZIP
/
LOG.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-01-14
|
998b
|
27 lines
echo off
echo/
echo LOG.BAT - Written by David M. Balmer for the Public Domain.
echo/
if "%1"=="" goto :syntax
stamp \log.log LOG /d /t /cd /cr %1 /cr /cr
rem
rem Add the /s parameter above to tell STAMP not to echo to the screen.
rem
%1
goto :ender
:syntax
echo This batch file is an example of one possible use of the STAMP utility.
echo LOG.BAT takes a given command and logs the date, time, current directory,
echo and the command issued on the file "\log.log". After logging, the
echo command is then issued normally.
echo/
echo Syntax: LOG command
echo/
echo LOG.BAT was written by David M. Balmer, Jr. and released into the public
echo domain by Solaris Systems. It requires the program "STAMP" which is
echo copyrighted by Solaris Systems with all rights reserved and released as
echo shareware. LOG.BAT may be modified but, as a courtesy, please leave the
echo original author's name and this information, add your name and what you
echo changed.
echo/
:ender