"GT" <g.thibaudeau@[EMAIL PROTECTED]
> wrote in message
news:46CC349D.5060602@[EMAIL PROTECTED]
> Hello,
> I have finally managed to get the backbone of a logging system to
> work.
> A useful thing that would save me a lot of time would be to have DOS
> give me its teething troubles (errors) in the log file that I output
> to.
> This way I can immediately tell where a problem is.
>
> The command would be in a DOS bat file.
> So far I use things like @[EMAIL PROTECTED]
something >> log.txt
> Well, I'd like the "something" to be the errors.
>
> Probably very simple, but I have no idea...
> Thanks for any help
To get output from a command generated to both StdOut and StdErr into a
log file, try "command>>log.txt 2>>&1"
That will only work if the command actually uses StdOut and StdErr, but
many (most?) do so it's your best bet. I'm not sure how you would go
about it if the command doesn't use StdOut/StdErr, but if you happen to
be in that situation post back and maybe someone else can help.
Regards,
Dave


|