is a robocopy graphical progress bar possible?



Mike Brearley
07-10-2005, 12:30 AM
So, how long has this tool been included with Windows?

I found it while looking for a very simple way to sync data between a local
'My Documents' folder and a network backup location (for laptop users that
need their data on their PC at all times).

I'm using a very simple... ROBOCOPY source destination /MIR /PURGE

Now, I'd like to be able to include some sort of graphical window for my
users. Something with a, "Please wait while your data is synchronized" and
a progress bar that shows the user approximately how much time remains. Any
idea how I could do this? Maybe getting a list of what needs to be copied
first, then starting the copy? Any help would be greatly appreciated. I've
dabbled in vb code before, but very little.

--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.

Mike Brearley

Mike Brearley
07-10-2005, 12:30 AM
"Mike Brearley" <nospam@spam.com> wrote in message
news:etOUw5hWFHA.2520@TK2MSFTNGP09.phx.gbl...
> So, how long has this tool been included with Windows?
>
> I found it while looking for a very simple way to sync data between a
> local 'My Documents' folder and a network backup location (for laptop
> users that need their data on their PC at all times).
>
> I'm using a very simple... ROBOCOPY source destination /MIR /PURGE
>
> Now, I'd like to be able to include some sort of graphical window for my
> users. Something with a, "Please wait while your data is synchronized"
> and a progress bar that shows the user approximately how much time
> remains. Any idea how I could do this? Maybe getting a list of what
> needs to be copied first, then starting the copy? Any help would be
> greatly appreciated. I've dabbled in vb code before, but very little.
>
> --

If nothing else, I would like to have the window give the user the ability
to cancel the process in case they are in a hurry and don't feel like
waiting.

--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.

Mike Brearley

07-10-2005, 12:30 AM
"Mike Brearley" <nospam@spam.com> wrote in message
news:etOUw5hWFHA.2520@TK2MSFTNGP09.phx.gbl...
> So, how long has this tool been included with Windows?
>
> I found it while looking for a very simple way to sync data between a
> local 'My Documents' folder and a network backup location (for laptop
> users that need their data on their PC at all times).
>
> I'm using a very simple... ROBOCOPY source destination /MIR /PURGE
>
> Now, I'd like to be able to include some sort of graphical window for
> my users. Something with a, "Please wait while your data is
> synchronized" and a progress bar that shows the user approximately how
> much time remains. Any idea how I could do this? Maybe getting a
> list of what needs to be copied first, then starting the copy? Any
> help would be greatly appreciated. I've dabbled in vb code before,
> but very little.


As I recall, robocopy was part of the Resource Kit. So if you have it
then you installed some of the Resource Kit. That also means that
normal users won't have it available unless they also install that part
of the Resource Kit. Because it is installed as part of the Resource
Kit, and since the Resource Kit's install path is not added to the
system or user PATH environment variables by default, those users where
you install it would need to specify the full path to the executable.
Just because you have the program doesn't mean your users will. Do you
have a license to redistribute some or all of the Resource Kit to all of
your users (I don't have the full Resource Kit to see what its license
says)? I did not see robocopy.exe included at
ftp://ftp.microsoft.com/ResKit/win2000/ so it might not be a
redistributable part of the Resource Kit.

Have you looked at what command-line switches are available for robocopy
(by running "robocopy /?")? Looks like the /V or /ETA switches might
provide progress metering.

--
____________________________________________________________
** Post your replies to the newsgroup - Share with others **
For e-mail Reply: remove "DELETE", add "~VN56~" to Subject.
____________________________________________________________


is a robocopy graphical progress bar possible?