<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am wondering how to do the following:
>
> Copy all the files in a difrectory to a remote directory, overwriting
> any files already there.
xcopy Source Destination /y
/y means to overwrite.
You can add /D to only overwrite with newer files.
And /s to do subdirectories.
And /r /h to include Read-Only (bit set) or Hidden files.
/c to continue on errors if one or some files fail (due to locking etc.)
> There will need to have domain authentication built in, and it needs
> to do it wihtout prompting the user because it will be a scheduled
> task.
If authentication by the current "user" or "Computer" is already possible
the above just works:
xcopy Source \\Server\Destination /y
Or you can map the drive.
The key is that the process which runs the batch must be able to
authenticate
and have enough permission to do the task.
When you schedule a submitted batch file (Task Scheduler) you are allowed
to provide credentials (user name and password) for running the batch.
If you use a Computer account (startup batch or scheduled job) then the
COMPUTER account is the one that must have access with both the
SHARE and the NTFS permissions on the server.
> Any and all help will be greatly appreciated!
Let us know if you have more quesitons or don't understand something....
--
Herb Martin, MCSE, MVP
http://www.LearnQuick.Com
(phone on web site)