473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 2768
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: hupjack | last post by:
I finally joined the millions of cell phone users out there. I'm the 2nd phone on what is now a family share plan. (Our two cell phones use minutes from a central 400 minute peak time pool.)...
4
by: Greg Baker | last post by:
I don't know what standard protocol is in this newsgroup. Am I allowed to post code and ask for help? I hope so.. :) Here's my problem: I am trying problem 127 of the valladolid online...
2
by: coeng | last post by:
I've run into a little problem with an OO design. Suppose I have a class called "Message". Each time I receive a communication from an external source, I instantiate an object of class...
18
by: junky_fellow | last post by:
What is the proper way of finding an end of file condition while reading a file ? How does feof() detects that end of file is reached ? Does this require support from OS ? Thanx in advance...
2
by: robert | last post by:
There is a strange freeze/crash only on dual core machines: I have a python app (Python 2.3.5 /Pythonwin build 203 / Windows) running with no stability problems on normal machines (Or a crash is...
3
by: joshfbm | last post by:
In the title are the two errors I get when compiling. The code is as follows int main() { int runs; double high=0; double remaining=0; double fremaining=0;
0
by: zephyrus360 | last post by:
This is about a technique to find the mod of a very large integer with a normal small integer. I recently encountered this problem when I needed to compute the modulus of a very large number with...
2
by: panos100m | last post by:
hi in my php page i am showing to the user the remaining time untill an event occurs.. I am reading the value from a database The problem is that he needs to refresh the page to get the correct...
1
by: panos100m | last post by:
hi in my php page i am showing to the user the remaining time untill an event occurs.. I am reading the value from a database The problem is that he needs to refresh the page to get the correct...
1
maxx233
by: maxx233 | last post by:
I need to figure out a way to generate a report to find customers in our DB that have unused credits on their account so we can void them out periodically - we manually assign them credits, they make...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.