Results 1 to 5 of 5

Thread: [2005] progress bar when copying a directory

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    [2005] progress bar when copying a directory

    how can i do it? without having to recursively count all files and monitoring how much files have been copied?? i want to just use fileio.filesystem.copydirectory and get a progress bar for it...is it possible??

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: [2005] progress bar when copying a directory

    You will need to give a max and min value so i cant see anyway of getting around it without calculating the number of files. If nothing is going to be done while the copying is in progress then i think you can use the wait cursor and just call it before the copying is about to begin and then setting it back to default after the copying has finished.

    Hope this helps
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  3. #3
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] progress bar when copying a directory

    Please mark you thread resolved using the Thread Tools as shown

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] progress bar when copying a directory

    CopyDirectory is an overloaded function so you can actually set it to show a standard copy dialog like the ones in the explorer.

    VB Code:
    1. FileIO.FileSystem.CopyDirectory("h:\source", "h:\destination", Microsoft.VisualBasic.FileIO.UIOption.AllDialogs)
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: [2005] progress bar when copying a directory

    cool thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width