locked
Copy multiple file at once RRS feed

  • Question

  • Hi, is it possible to copy multiple file using the same progress window?

    I know you can do that using a loop, but I'd like to have a single copy without a loop. The purpose is to have in the progress window with the total time instead of instead the remaining time for each file.

    Is it possible to do that with the CopyFile function? I don't see how it can be done with multiple file that have not the same name or extension (can't use wildcard).

    Thanks!

    • Moved by Bill_Stewart Friday, July 4, 2014 2:37 AM Unanswerable drive-by question
    Monday, March 3, 2014 4:17 PM

All replies

  • Hello JF,

    it is possible using Powershell and the Write-Progress cmdlet.

    the relevant steps:

    1. Get all items to be copied
    2. Measure the basis on which to measure progress (usually count or total length)
    3. Iterate over each item, copying it and update the Write-Progress with the new percentage

    Cheers,
    Fred


    There's no place like 127.0.0.1

    Monday, March 3, 2014 4:24 PM
  • What you ask can really only be done with a form.


    ¯\_(ツ)_/¯

    Monday, March 3, 2014 5:33 PM
  • Alright thanks everyone!
    Monday, March 3, 2014 9:45 PM