Re: Copy folder with progress window
- From: "TDM" <rpuffd@xxxxxxxxx>
- Date: Fri, 16 Jun 2006 08:00:37 -0700
"Anthony E. Scandora, Jr." <Tony at AES Systems Corp dot com> wrote in
message news:FF29A220-E9AF-4615-A02B-E2ABAC95722C@xxxxxxxxxxxxxxxx
I need to copy a single folder tree containing 40+GB of data in 30,000+
files
in 30,000 folders seven levels deep (don't ask) in a script.
FileSystemObject.CopyFolder works, but shows no sign of progress while
working for almost an hour. How can the script show something like
Explorer's drag and drop file copy progress window while copying this
monster
folder tree?
Thanks,
Anthony E. Scandora, Jr.
Tony at AES Systems Corp dot com
Just a word of caution. I spent a great deal of time
developing a PC data migration script and ran in
to some issues with both CopyFolder and CopyHere.
If they choke on a file, they quit, with no warning or
indication of how much was actually copied.
CopyHere will give you the typical Windows Explorer
file copy status bar if you set it up to do so. But again, if
it errors out on a file for any reason, it just goes away and
I never found a way to figure out where it stopped, or
how much had been accomplished with the copy.
With the amount of data you mention, I wonder if you
actually tested the results after using CopyFolder ? If
not, I would surely do so. You may find that it did not
complete the entire copy. The biggest issue I ran in to
was open files, they would cause a sharing violation
and casue both CopyFolder and CopyHere to quit.
So, I wound up resorting to Xcopy. It will continue
on error, and if you use the .Exec method you can
parse StdOut for errors. That is what I eventually
ended up with. You can also get a progress by using
StdOut in some way to give either just the StdOut, or
develop you own scheme with the results of StdOut,
such as "xxx files copied so far, please wait..." etc. I
used StdOut to display in an Instance of IE so the user
could see what was happening.
Just my $.02.
TDM
.
- Prev by Date: Password Age Script Output
- Next by Date: Image upload
- Previous by thread: Re: Copy folder with progress window
- Next by thread: I need some help
- Index(es):
Relevant Pages
|