Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!dgsi!bud From: bud@cimage.com (Bud Howard/1000000) Newsgroups: comp.windows.ms Subject: Re: Zero byte DOS files Message-ID: <1990Aug27.163336.17116@cimage.com> Date: 27 Aug 90 16:33:36 GMT References: <23366@sequoia.execu.com> <3130034@hplsla.HP.COM> Reply-To: bud@dgsi.UUCP (Bud Howard/1000000) Organization: Cimage Corp, Ann Arbor, MI Lines: 21 I guess few people know dos well enough! It is _VERY_ simple. REM First check to see if the file is missing and write to errfile. if not exist goodfile.txt echo Goodfile.txt is missing! >>errfile REM Copy the original to a new name (be sure that all names are unique.) copy errfile errfile2 >NUL REM Because DOS will not copy a zero length file, if it is a zero REM length file the second one will be missing and we can delete REM the first one. if not exist errfile2 erase errfile REM This is just a cleanup line so not to have duplicate files. if exist errfile2 erase errfile2 REM Here is where the errfile would be displayed to the screen. if exist errfile type errfile |more This is very simple and quick. bud P.S. THINK DOS!