batch of copy in icon on desktop....

  • Thread starter Thread starter sal21
  • Start date Start date
S

sal21

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.
 
"sal21" <gss.italy@iol.it> wrote in message
news:1184359336.196962.119710@n60g2000hse.googlegroups.com...
>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.
 
Back
Top