Asked By Al Dunbar
26-Oct-08 12:17 PM

Since you have no control over how your users actually *run* your script, it
may not be safe to assume that the current directory is the one in which
your script and its support files are located. That is why I suggested
calling it this way:
as "%~dp0" _is_ the folder where the script is located.
That would depend. I have not read the EULA lately, so I do not know what it
may say about distribution - I'd recommend you check there to see if it
specifically mentions re-distribution as either allowed or disallowed.
But it may also depend on your environment. If the users to whom you are
distributing your script are limited to staff of your company and if the
computers involved are all owned by the company, then you are not
distributing the software beyond where you are licensed to.
The installation script that installs your script could advise the users of
this dependency. You may have no control over where they might install it
(and cannot even be sure that they will), but if they do not follow your
installation instructions, then it is their problem if it fails.
Alternately, yes, you could code your script to search for the first copy of
robocopy that is the required version and either use that copy, or advise
the user that they need to download it.
/Al