Re: Copy folder with progress window

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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


.



Relevant Pages

  • Re: Looking for a code snippet
    ... progress as well. ... by the searching CGI script. ... text file was written that was accessible by a client-side script through ... chunks of script code for that. ...
    (comp.lang.javascript)
  • Re: Process.BeginErrorReadLine and BeginOutputReadLine; buffer not flushed?
    ... script, and redirects the stdout and stderr output from that script ... That means that if the process gets ahead of your reading process at all, the reading process can still wind up in a thread that's happy to keep reading the stream it's working on, while the OS buffers output sent to the other string. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Looking for a code snippet
    ... progress as well. ... by the searching CGI script. ... (originates from DOM Level 0), DOM Level 2 methods and proprietary CSS ... support for each feature. ...
    (comp.lang.javascript)
  • Re: ERROR: No space left on device /dev/stdout
    ... awk: close failed on file /dev/stdout ... If failure had no penalty success would not be a prize (T. ... my conclusion is that the stdout is indeed a plain file. ... Can you please give an example of a script designed to clean up output ...
    (comp.os.linux.development.system)
  • Re: Problem with WSH Shell Exec StdOut
    ... catch its StdOut stream in real time. ... NeroCmd.exe is a command line utility included with or ... Here is the script I'm currently using: ...
    (microsoft.public.scripting.vbscript)