"sal21" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have file .doc and .xls in \\myserverdir\mydir\..... and in c:\\mydir
> \
> in this two dir are the same number of file with the same name. in
> effect i the same dir.
> Now i want to create a desktop icon with a a batch DOS or other
> language to:
> copy from dir of server all files and paste this files in c:\mydir...
> but no show the message "file existis do yoy want to overwrite yes/
> no..."
> Always in this batch or program controll if one of file in c:\mydir is
> in use from the user and during the copy show message "attention i
> cannot complete the operation of copy becaus you have a file in use,
> close it and repeat the operation"
>
> Tath is all.
>
> Tks.
>
There are switches for all command line commands. You can see
them by typing
xcopy /? (for example)
at the Command Prompt. In your case I recommend you use xcopy.exe
with these switches: /Y /C, and perhaps also /D.
|