On Tue, 30 Jan 2001 12:43:29 -0800 (PST)
Subject: Re: [BATCH WORLD] Batch File Logging
James Zagorski <zgreatwhite@...
The same %temp% variable could be responsible for this similar error message.
I neglected to say that if the temp variable is not set, and you execute such
a command from a non writeable device, say a cdrom, then you will get such an
error message - as the pipe attempts to create the temprorary file in the
current directory, and fails.
Regarding error messages, they are sent to Standard_ERROR and not Standard_OUT
- which is where redirected text goes.
You cannot redirect standard_error and thus the error messages always appear
on the screen/console. When I say "cannot" I mean without the aid of a third
party program - there is a TSR program available that can redirect
standard_error as well.
>I could use redirect, but some error messages will not go
>to the redirected output, and >> will not always work on a
>Win 9x machine.
>For example, echo[ |time |find "Cur" >>outfile
>gets you FILE CREATION ERROR.
>Additionally, error messages(my main reason for wanting batch file
>output) will not always completely appear in the log file.
>For example, assume the file THIS does not exist, and your batch file
>performs the operation COPY THIS THAT >outfile
>Outfile will tell you 0 files copied, but not why...the output still
>goes to the screen. There are many other examples.
>--- Daniel Antony Zachery Moore <dmoore@...> wrote:
>> > If you are running WIN 9x, I am unaware of a solution. This is why I always
>> > keep one, lowly DOS machine on my network.
>> Why can´t you use a redirect? If you can put it to the screen *and* a
>> file *and* a printer if you really want to with redirects...
>Get personalized email addresses from Yahoo! Mail - only $35
>a year! http://personal.mail.yahoo.com/
>To Post a message, send it to: batchworld@...
>To Unsubscribe, send a blank message to: batchworld-unsubscribe@...