How to show the status of file copy

I have a vbscript to do file copy as shown:-

Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFolder "D:c2*.*", "J:"
fs.CopyFile "D:c2*.*", "J:"

How do I show the status of the file copy during the copy job. I mean I want to show it on screen the status bar during the file copy. Any ideas?


Comments

  • : I have a vbscript to do file copy as shown:-
    :
    : Set fs = CreateObject("Scripting.FileSystemObject")
    : fs.CopyFolder "D:c2*.*", "J:"
    : fs.CopyFile "D:c2*.*", "J:"
    :
    : How do I show the status of the file copy during the copy job. I mean I want to show it on screen the status bar during the file copy. [b]Any ideas?[/b]
    :
    :
    :
    Yes, throw the FileSystemObject into the rubbish-Bin.
    Use instead the "SHFileOperation"-API provided by Windows. You'll get the familiar Status-Bar when you copy files/folders in the Windows-Explorer.

    Zvoni
    ------------------------------------------
    Only stupidity of mankind and the universe
    are infinite, but i'm not sure concerning
    the universe. A. Einstein

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion