On Fri, 10 Mar 2000 23:34:10 -0500 Detailboy <[EMAIL PROTECTED]> wrote:
> Can any DOS pros please help me regarding some DOS commands.
> I'd like to create a .BAT file that will issue a DIR command for a
> directory so that it ECHOs to and appends to the same daily diary file
> and each day I run the .BAT it will append the DIR to the end of the
> same file so that when I want I can see what time the files were written
> each day over time. The files are deleted and re-created daily. The
> goal is to keep a daily diary of the what time the files were written.
Oh, now I think I've figured out what you want to do. Is this it? :
------- begin DIRHIST.BAT -------
@echo off
REM Program Name: DIRHIST.BAT
REM Purpose: To write a history of directory listings to a file.
cls
dir > filelist.tmp
if not exist filehist.txt ren filelist.tmp filehist.txt
if not exist filelist.tmp goto END
copy filehist.txt + filelist.tmp tempfile.tmp
del filehist.txt
del filelist.tmp
ren tempfile.tmp filehist.txt
:END
echo History of directory listings has been written to the file FILEHIST.TXT
echo.
------ end DIRHIST.BAT -----------
Hope that helps....
Sam Heywood
-- This mail was written by user of Arachne, the Ultimate Internet Client
To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html