show active log in Textpad

I am executing a batch (.bat) file from command prompt and it executes for 30 minutes. I want the resultant log to be shown in a textpad. The log should be automatically updated in the active window as it is shown in CommandPrompt.

I'm using WindowsXP & my textpad path is "C:\Program Files\TextPad 4\TextPad.exe"
LVL 6
Ravi KallaTechnology LeadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewCommented:
Here's a thought on this.  If you create a new batch file that looks like this:

@echo off
echo .>"c:\temp\EE26102363.log"
start "" "C:\Program Files\TextPad 4\TextPad.exe" "c:\temp\EE26102363.log"
call "logger.bat" >>"c:\temp\EE26102363.log"

Here I am assuming that you have a current bat file that you want to capture all the output from, and I used the name "logger.bat", change that to the name of the real BAT file.

This new BAT file will be the driver, and first creates an empty log file for the results, then starts TextPad passing it the empty log file to open.  Then we proceed to execute the existing BAT file and direct all output to the log file.

In the TextPad window the file updates will appear, but only if you click out of the TextPad window and then back into it.  In Configure, Preferences, File I also set Auto-Reload so it didn't prompt to reload the file.

I haven't found a way to have TextPad real time update it's display of the file, if you know of a switch or setting that allows that let me know.  But figured I'd share this much and see if it's close to what you wanted.

~bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ravi KallaTechnology LeadAuthor Commented:
eventhough this is not the right solution, this is somewhat related to my question
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.