how to calculate copy process remaining time?
-
hi, I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how will i calculate the remaining time of popy process. thank you
-
hi, I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how will i calculate the remaining time of popy process. thank you
Wow you asked the same question in the same forum in about 90 minutes.
Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion
-
hi, I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how will i calculate the remaining time of popy process. thank you
have you see may reply before? has it helps? :zzz:
dhaim ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro" in the front line gave a lead, in the middle line build goodwill, in the behind give power support
-
hi, I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how will i calculate the remaining time of popy process. thank you
You're copying files? It's not that hard to implement in your own application. Before you start copying, put the current time in a variable. (DateTime startCopy = DateTime.Now) Next, you're gonna copy a list of files. Once you have copied the first file, get the current time. Get the timespan between those two timings. At this point you want to know how long it took to copy a single file. You also know how much files you're going to copy, right? Next thing you do, is check out how many files still need to be copied. (How many items are remaining in the list?) Multiply by the time that it took to copy a single file - and there you have your "Remaining time:" The displayed time will be a rough indication. It might be more accurate if you count the bytes copied :) Hope this helps,