Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: DOS error f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 456 of 500
Post > Topic >>

Re: DOS error file output

by "Dave R." <dwragle at drbsystems dot com> Aug 22, 2007 at 09:54 AM

"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
 




 4 Posts in Topic:
DOS error file output
GT <g.thibaudeau@[EMAI  2007-08-22 15:05:33 
Re: DOS error file output
"Dave R." <d  2007-08-22 09:54:29 
Re: DOS error file output
"Todd Vargo" &l  2007-08-22 21:32:21 
Re: DOS error file output
"Dave R." <d  2007-08-23 07:34:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:41:39 CDT 2008.