Echo string from command as it updates in real-time

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
alleypuppy
Posts: 82
Joined: 24 Apr 2011 19:20

Echo string from command as it updates in real-time

#1 Post by alleypuppy » 04 Sep 2011 20:41

Hello,

I want to echo a string from a command as it updates in real-time. For instance, I want to echo the progress of diskpart.exe in a batch file without showing all of the other stuff. Is this possible?

Thanks for any input.


alleypuppy
Posts: 82
Joined: 24 Apr 2011 19:20

Re: Echo string from command as it updates in real-time

#3 Post by alleypuppy » 05 Sep 2011 11:31

I like this program, however, I don't like how it repeats the process in order for the progress to refresh. I need the progress to update with the progress of the process being executed, not after the process is completed and then executing it again until the bar reaches 100%.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Echo string from command as it updates in real-time

#4 Post by Ed Dyreen » 05 Sep 2011 11:58

'
If Dispart doesn't show a progress bar itself then you won't be able to show one.
How would DOS know about progress ? You can only show progress in between diskpart scripts.

Post Reply