Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to calculate copy process remaining time?

how to calculate copy process remaining time?

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jugal_piet indiatimes com
    wrote on last edited by
    #1

    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

    G M L 3 Replies Last reply
    0
    • J jugal_piet indiatimes com

      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

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • J jugal_piet indiatimes com

        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

        M Offline
        M Offline
        Mbah Dhaim
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J jugal_piet indiatimes com

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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,

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups