Re: logging batch files

From: Rob P (rob_polcyn_at_yahoo.com)
Date: 04/01/04


Date: Thu, 1 Apr 2004 10:04:02 -0500

Jerold replied to my similar post several days ago with the following
information. It was exactly what I was looking for.

@ECHO ON
call :Logit>>batch.log 2>&1
exit /b 0
:Logit
COMMAND 1
COMMAND 2
ETC

Rob

"Joe Vaughan" <jvaughan@locktonrisk.com> wrote in message
news:171cb01c417ef$edeea880$a101280a@phx.gbl...
> Is there a way to log everything from the beginning of a
> batch file to the end while it processes? I want to
> capture the progress of batch files in a log. Any idea
> how?



Relevant Pages

  • Re: Persisting env vars in cmd windows
    ... The help text for the command you question goes like this: ... format by typing this: echo %date% ... If you don't then the batch file will fail. ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Shell Script to Remove Old Files
    ... Note it needs a TSM server: ... # Verify command line arguments ... echo "\nError: $STARTDIR does not exist.\n" ...
    (comp.unix.admin)
  • Re: Need Help with a DOS script (if possible)
    ... were meant to run the batch file with the "echo" command in place in the ... It never did but you removed the "echo" command regardless. ... echo Checking the target folder xxx%Target%yyy ...
    (microsoft.public.windowsxp.general)
  • Re: Perfmon and batch file
    ... > event viewer and run command file. ... > but no execute the cmd file or execute it but not execute the ... You are probably making some assumptions in your batch file ... @echo off ...
    (microsoft.public.windows.server.general)
  • Re: Persisting env vars in cmd windows
    ... sharp and robust batch file. ... I open several Command windows in succession. ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)