471,123 Members | 866 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

how to find remaining time in C# ?

Hi,
I am running lame to convert a wav file to mp3 file and I want to
display to the user how much time is left. How do I do that in C# ??

System.Diagnostics.Process lame =
System.Diagnostics.Process.Start(lame_path,lame_ar gs);
lame.WaitForExit();

TIA,
Darth

Oct 10 '06 #1
1 2593
Unless the process gives you some indication, you are pretty much stuck with
winging it. In general, most wrapped process give little feedback while
running, so you are probably stuck with winging it. :-)

One method is to see how many bytes have been written to disk, but this will
just be an estimate. It will only be as good as your algorithm that
calculates the rough difference in size between formats.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Darth" <lo**********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi,
I am running lame to convert a wav file to mp3 file and I want to
display to the user how much time is left. How do I do that in C# ??

System.Diagnostics.Process lame =
System.Diagnostics.Process.Start(lame_path,lame_ar gs);
lame.WaitForExit();

TIA,
Darth

Oct 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by hupjack | last post: by
4 posts views Thread by Greg Baker | last post: by
2 posts views Thread by coeng | last post: by
18 posts views Thread by junky_fellow | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.