PC Review


Reply
Thread Tools Rate Thread

Batch File output to File with java twist

 
 
Graza
Guest
Posts: n/a
 
      18th Dec 2006
I have written a batch file that uses about 5 menus before executing a
java class based upon the input from the user.

What i would like to do is have all the output from the java execution
being written to a file so that in the event of any problems they can
be quickly debuged (the actual execution times are pretty big in this
case) without having to repeat the process.

I've tried a number of different things I've seen on this and other
forums and have failed to find a solution to my problem.

The most common ones were the > or >> which creates a file then does
not display my interface followed by not actually recoring any of the
output. and command /c batfilename.bat >out.txt which just fails.

If anyone can help be here it would be much appreciated.

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      18th Dec 2006

"Graza" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have written a batch file that uses about 5 menus before executing a
> java class based upon the input from the user.
>
> What i would like to do is have all the output from the java execution
> being written to a file so that in the event of any problems they can
> be quickly debuged (the actual execution times are pretty big in this
> case) without having to repeat the process.
>
> I've tried a number of different things I've seen on this and other
> forums and have failed to find a solution to my problem.
>
> The most common ones were the > or >> which creates a file then does
> not display my interface followed by not actually recoring any of the
> output. and command /c batfilename.bat >out.txt which just fails.
>
> If anyone can help be here it would be much appreciated.
>


You write
"The most common ones were the > or >> which creates a file then does
not display my interface followed by not actually recoring any of the
output. and command /c batfilename.bat >out.txt which just fails."

I cannot work out what you mean. Can you rephrase this and be
a little more specific?


 
Reply With Quote
 
Graza
Guest
Posts: n/a
 
      18th Dec 2006
> You write
> "The most common ones were the > or >> which creates a file then does
> not display my interface followed by not actually recoring any of the
> output. and command /c batfilename.bat >out.txt which just fails."
>
> I cannot work out what you mean. Can you rephrase this and be
> a little more specific?


I meant the most common "ouput" methods that I have seen are those the

batfilename.bat >outFileName.txt
batfilename.bat >>outFileName.txt
and the
command /c batfilename.bat >outFileName.txt

and neither of these capture quite what i need.

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      18th Dec 2006

"Graza" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> > You write
> > "The most common ones were the > or >> which creates a file then does
> > not display my interface followed by not actually recoring any of the
> > output. and command /c batfilename.bat >out.txt which just fails."
> >
> > I cannot work out what you mean. Can you rephrase this and be
> > a little more specific?

>
> I meant the most common "ouput" methods that I have seen are those the
>
> batfilename.bat >outFileName.txt
> batfilename.bat >>outFileName.txt
> and the
> command /c batfilename.bat >outFileName.txt
>
> and neither of these capture quite what i need.


Commands executed from the Command Prompt will capture
text output only, e.g.

SomeProgram.exe 1>standard.txt 2>error.txt

They will not capture graphical data. Are you trying to capture
graphical stuff?


 
Reply With Quote
 
Graza
Guest
Posts: n/a
 
      20th Dec 2006
> Commands executed from the Command Prompt will capture
> text output only, e.g.
>
> SomeProgram.exe 1>standard.txt 2>error.txt
>
> They will not capture graphical data. Are you trying to capture
> graphical stuff?


No I just want to have all the stuff that is normally outputted to the
console in eclipse or into the dos window when it runs.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Output Date Created and Date Modified to a txt file using a batch file mhel_0414 Windows XP 0 12th Sep 2009 07:00 AM
run batch file with Standard Output and Input Gidi Microsoft C# .NET 13 26th Mar 2008 11:22 AM
streaming the output of a batch file to a text box? ed Microsoft VB .NET 4 24th Aug 2006 04:25 PM
Automate Log output from Batch File =?Utf-8?B?Z2liYnlsaW5rcw==?= Windows XP General 2 19th Sep 2005 08:27 AM
Standard output into batch file variable David Every Microsoft Dot NET 1 17th Nov 2003 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 PM.